1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

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

This commit is contained in:
Sergei Golubchik
2013-01-23 16:23:50 +01:00
parent 675c1b378a
commit eb809ec061

View File

@@ -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));