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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user