We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cd6d31 commit 91e33eaCopy full SHA for 91e33ea
src/util/small_map.h
@@ -146,7 +146,7 @@ class small_mapt
146
if(n == 0)
147
return nullptr;
148
149
- T *mem = (T *)realloc(ptr, sizeof(T) * n);
+ T *mem = (T *)realloc((char *)ptr, sizeof(T) * n);
150
151
if(!mem)
152
throw std::bad_alloc();
@@ -486,7 +486,7 @@ class small_mapt
486
std::size_t n = size();
487
if(ii < n - 1)
488
{
489
- memmove(p + ii, p + ii + 1, sizeof(T) * (n - ii - 1));
+ memmove((char *)(p + ii), p + ii + 1, sizeof(T) * (n - ii - 1));
490
}
491
492
p = allocate(p, n - 1);
0 commit comments