summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/libmallocintercept.c2
1 files changed, 1 insertions, 1 deletions
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");