Skip to content

Commit

Permalink
format compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansson committed Aug 26, 2020
1 parent bbd03e7 commit 35dc09b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/main-override.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <inttypes.h>

extern "C" void* RPMALLOC_CDECL pvalloc(size_t size);
extern "C" void* RPMALLOC_CDECL valloc(size_t size);
Expand Down Expand Up @@ -73,7 +74,7 @@ test_alloc(void) {
return -1;
}
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)));
fprintf(stderr, "FAIL: pvalloc did not align size to page size (%" PRIu64 ")\n", static_cast<uint64_t>(rpmalloc_usable_size(p)));
return -1;
}
rpfree(p);
Expand Down

0 comments on commit 35dc09b

Please sign in to comment.