NFC: tests: size_t and uintptr_t are not interchangable
This commit is contained in:
committed by
Matthew Parkinson
parent
960733099b
commit
8da12f5af8
@@ -50,7 +50,7 @@ void check_result(size_t size, size_t align, void* p, int err, bool null)
|
||||
{
|
||||
printf(
|
||||
"Address is 0x%zx, but required to be aligned to 0x%zx.\n",
|
||||
reinterpret_cast<uintptr_t>(p),
|
||||
reinterpret_cast<size_t>(p),
|
||||
align);
|
||||
abort();
|
||||
}
|
||||
@@ -60,7 +60,7 @@ void check_result(size_t size, size_t align, void* p, int err, bool null)
|
||||
{
|
||||
printf(
|
||||
"Address is 0x%zx, but should have natural alignment to 0x%zx.\n",
|
||||
reinterpret_cast<uintptr_t>(p),
|
||||
reinterpret_cast<size_t>(p),
|
||||
natural_alignment(size));
|
||||
abort();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user