summaryrefslogtreecommitdiff
path: root/test/memorytests.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/memorytests.c')
-rw-r--r--test/memorytests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/memorytests.c b/test/memorytests.c
index c289126..7c55cce 100644
--- a/test/memorytests.c
+++ b/test/memorytests.c
@@ -33,7 +33,7 @@ tracking_allocator(void *ptr, size_t len, void *pw)
allocs++;
ret = malloc(len + sizeof(size_t));
*(size_t *)ret = len;
- return ret + sizeof(size_t);
+ return ((char *) ret) + sizeof(size_t);
}
last_op = FREE;
allocs--;