aboutsummaryrefslogtreecommitdiffstats
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.c b/test.c
index 5d4eb7e..b2cff61 100644
--- a/test.c
+++ b/test.c
@@ -39,7 +39,7 @@ struct test {
#define CHECK_PACK(dest, fmt, ...) do { \
enum pack_status CHECK_PACK_s = pack(dest, sizeof (dest), fmt, __VA_ARGS__); \
if (CHECK_PACK_s != PACK_OK) { \
- printf(__FILE__ ":%d pack(%p, %zu, " #fmt ", ...) -> %s (%d)\n", __LINE__, dest, sizeof (dest), pack_strerror(CHECK_PACK_s), CHECK_PACK_s); \
+ printf(__FILE__ ":%d pack(%p, %zu, " #fmt ", ...) -> %s (%d)\n", __LINE__, (void *)(dest), sizeof (dest), pack_strerror(CHECK_PACK_s), CHECK_PACK_s); \
return false; \
} \
} while (0)