We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbd03e7 commit 35dc09bCopy full SHA for 35dc09b
test/main-override.cc
@@ -13,6 +13,7 @@
13
#include <stdio.h>
14
#include <string.h>
15
#include <math.h>
16
+#include <inttypes.h>
17
18
extern "C" void* RPMALLOC_CDECL pvalloc(size_t size);
19
extern "C" void* RPMALLOC_CDECL valloc(size_t size);
@@ -73,7 +74,7 @@ test_alloc(void) {
73
74
return -1;
75
}
76
if (reinterpret_cast<uintptr_t>(p) < config->page_size) {
- 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)));
78
79
80
rpfree(p);
0 commit comments