Fix 32-bit build warnings (99.9% in printf)

This commit is contained in:
Vitaliy Filippov
2024-02-22 12:22:16 +03:00
parent b3c15db331
commit f20564b44b
62 changed files with 384 additions and 371 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ void alloc_all(int size)
}
if (x != i)
{
printf("incorrect block allocated: expected %d, got %lu\n", i, x);
printf("incorrect block allocated: expected %d, got %ju\n", i, x);
}
if (a->get(x))
{
@@ -33,7 +33,7 @@ void alloc_all(int size)
uint64_t x = a->find_free();
if (x != UINT64_MAX)
{
printf("extra free space found: %lx (%d)\n", x, size);
printf("extra free space found: %jx (%d)\n", x, size);
exit(1);
}
delete a;