Fix bug in LZHAM debug log formatting

Should be '%llu' or '%zu' for size types.
This commit is contained in:
Kawe Mazidjatari 2023-01-17 00:42:38 +01:00
parent 96fb0519d9
commit 98331796b2

View File

@ -37,7 +37,7 @@ namespace lzham
return false;
char buf[256];
sprintf_s(buf, sizeof(buf), "vector: lzham_realloc() failed allocating %u bytes", desired_size);
sprintf_s(buf, sizeof(buf), "vector: lzham_realloc() failed allocating %llu bytes", desired_size);
LZHAM_FAIL(buf);
}
m_p = new_p;
@ -51,7 +51,7 @@ namespace lzham
return false;
char buf[256];
sprintf_s(buf, sizeof(buf), "vector: lzham_malloc() failed allocating %u bytes", desired_size);
sprintf_s(buf, sizeof(buf), "vector: lzham_malloc() failed allocating %llu bytes", desired_size);
LZHAM_FAIL(buf);
}