Commit eb809ec0 authored by Sergei Golubchik's avatar Sergei Golubchik

32-bit fix: first cast the value to a signed type, then subtract

parent 675c1b37
......@@ -188,7 +188,7 @@ void *my_realloc(void *oldpoint, size_t size, myf my_flags)
my_flags & MY_THREAD_SPECIFIC);
}
else
update_malloc_size((longlong) (size - old_size), old_flags);
update_malloc_size((longlong)size - (longlong)old_size, old_flags);
}
DBUG_PRINT("exit",("ptr: %p", point));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment