From 2bfbe19f719c34f07656cd1513b79209f7d22b61 Mon Sep 17 00:00:00 2001 From: Wolfgang Hommel Date: Sun, 8 May 2022 21:24:51 +0200 Subject: silence minor type warning in libmallocintercept.c --- test/libmallocintercept.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/libmallocintercept.c b/test/libmallocintercept.c index a649e9e..e789d34 100644 --- a/test/libmallocintercept.c +++ b/test/libmallocintercept.c @@ -74,7 +74,7 @@ void *malloc(size_t size) { } void free(void *ptr) { - void *ptr2 = ptr; ptr2 -= ptr; + long int ptr2 = (long int) ptr; ptr2 -= (long int) ptr; print_msg("Called free() on from libmallocintercept..."); poke_faketime(); print_msg("successfully\n"); -- cgit v1.2.1