Skip to content

Commit 35dc09b

Browse files
committed
format compatibility
1 parent bbd03e7 commit 35dc09b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/main-override.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <stdio.h>
1414
#include <string.h>
1515
#include <math.h>
16+
#include <inttypes.h>
1617

1718
extern "C" void* RPMALLOC_CDECL pvalloc(size_t size);
1819
extern "C" void* RPMALLOC_CDECL valloc(size_t size);
@@ -73,7 +74,7 @@ test_alloc(void) {
7374
return -1;
7475
}
7576
if (reinterpret_cast<uintptr_t>(p) < config->page_size) {
76-
fprintf(stderr, "FAIL: pvalloc did not align size to page size (%lu)\n", static_cast<uintptr_t>(rpmalloc_usable_size(p)));
77+
fprintf(stderr, "FAIL: pvalloc did not align size to page size (%" PRIu64 ")\n", static_cast<uint64_t>(rpmalloc_usable_size(p)));
7778
return -1;
7879
}
7980
rpfree(p);

0 commit comments

Comments
 (0)