Using the correct format string(%zu) for size_t type. This should fix 64
bits builds. Submitted by: Garrett Cooper <yanegomi@gmail.com>
This commit is contained in:
parent
3fa3d79859
commit
9edb76f49f
@ -110,7 +110,7 @@ Free(void *ptr, const char *file, int line)
|
||||
return;
|
||||
}
|
||||
if (*((signed char *)res + res->ga_Bytes - 1) != -2)
|
||||
panic("free: guard2 fail @ %p + %d from %s:%d", ptr, res->ga_Bytes - MALLOCALIGN, file, line);
|
||||
panic("free: guard2 fail @ %p + %zu from %s:%d", ptr, res->ga_Bytes - MALLOCALIGN, file, line);
|
||||
*((signed char *)res + res->ga_Bytes - 1) = -1;
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user