From 9808b3f8d469c0b6d8bf6fc497b9307b6b079678 Mon Sep 17 00:00:00 2001 From: Nicolas Cellier Date: Sat, 19 Nov 2016 18:20:00 +0100 Subject: [PATCH] Avoid a pointer type mismatch warning --- platforms/unix/vm/sqUnixSpurMemory.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platforms/unix/vm/sqUnixSpurMemory.c b/platforms/unix/vm/sqUnixSpurMemory.c index 04b7b938ac..224072774c 100644 --- a/platforms/unix/vm/sqUnixSpurMemory.c +++ b/platforms/unix/vm/sqUnixSpurMemory.c @@ -90,7 +90,8 @@ usqInt sqAllocateMemory(usqInt minHeapSize, usqInt desiredHeapSize) { char *hint, *address, *alloc; - unsigned long alignment, allocBytes; + unsigned long alignment; + sqInt allocBytes; if (pageSize) { fprintf(stderr, "sqAllocateMemory: already called\n");