- Added the C99 printf size specifiers 't' (ptrdiff_t) and 'z' (size_t) to
FString::Format() so that I can fix all the problem printf strings that a 64-bit GCC compile finds. SVN r968 (trunk)
This commit is contained in:
parent
99f55e8b8f
commit
a0d5463b49
22 changed files with 85 additions and 42 deletions
|
|
@ -120,7 +120,7 @@ void *safe_malloc(size_t count)
|
|||
void *p;
|
||||
if (count > (1 << 21))
|
||||
{
|
||||
I_Error("Timidity: Tried allocating %u bytes. This must be a bug.", count);
|
||||
I_Error("Timidity: Tried allocating %zu bytes. This must be a bug.", count);
|
||||
}
|
||||
else if ((p = malloc(count)))
|
||||
{
|
||||
|
|
@ -128,7 +128,7 @@ void *safe_malloc(size_t count)
|
|||
}
|
||||
else
|
||||
{
|
||||
I_Error("Timidity: Couldn't malloc %u bytes.", count);
|
||||
I_Error("Timidity: Couldn't malloc %zu bytes.", count);
|
||||
}
|
||||
return 0; // Unreachable.
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue