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:
avatar 2011-06-16 15:35:12 +00:00
parent 3fa3d79859
commit 9edb76f49f

View File

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