summaryrefslogtreecommitdiffhomepage
path: root/misc/tests/ctest.h
diff options
context:
space:
mode:
authortylov <[email protected]>2023-07-09 00:06:54 +0200
committertylov <[email protected]>2023-07-10 19:31:41 +0200
commit071b41c0fe95cb3f9a72bbe0417d856e7989ca08 (patch)
tree41714c18e813b4eeec48f7d5a7109485f097f5d5 /misc/tests/ctest.h
parentc773d8b1f41d5c2ceb228c44a9958e22db0990e2 (diff)
downloadSTC-modified-071b41c0fe95cb3f9a72bbe0417d856e7989ca08.tar.gz
STC-modified-071b41c0fe95cb3f9a72bbe0417d856e7989ca08.zip
Backport from dev43: Bugfixes on 4.2 from raspberry pi 32-bit testing. Fixes issue #61: too small int used in example.
Diffstat (limited to 'misc/tests/ctest.h')
-rw-r--r--misc/tests/ctest.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/tests/ctest.h b/misc/tests/ctest.h
index 373cda0e..6b1b1084 100644
--- a/misc/tests/ctest.h
+++ b/misc/tests/ctest.h
@@ -408,7 +408,8 @@ void assert_dbl_compare(const char* cmp, double exp, double real, double tol, co
void assert_pointers(const char* cmp, const void* exp, const void* real, const char* caller, int line) {
if ((exp == real) != (cmp[0] == '=')) {
- CTEST_ERR("%s:%d assertion failed (0x%02llx) %s (0x%02llx)", caller, line, (unsigned long long)exp , cmp, (unsigned long long)real);
+ CTEST_ERR("%s:%d assertion failed (0x%02llx) %s (0x%02llx)", caller, line,
+ (unsigned long long)(uintptr_t)exp , cmp, (unsigned long long)(uintptr_t)real);
}
}