Skip to content

Commit

Permalink
fix compile warning with gcc 9.1.0 including simplestl.h file
Browse files Browse the repository at this point in the history
  • Loading branch information
veahow committed Oct 11, 2022
1 parent 902954d commit cfdf317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simplestl.h
Expand Up @@ -508,7 +508,7 @@ struct vector
{
capacity_ = new_size * 2;
T* new_data = (T*)new char[capacity_ * sizeof(T)];
memset(new_data, 0, capacity_ * sizeof(T));
memset(static_cast<void *>(new_data), 0, capacity_ * sizeof(T));
if (data_)
{
memmove(new_data, data_, sizeof(T) * size_);
Expand Down

0 comments on commit cfdf317

Please sign in to comment.