From b0d8d403572ddc04e0af3337fd047818faac9f69 Mon Sep 17 00:00:00 2001 From: "zik.saleeba" Date: Sat, 28 Feb 2009 19:32:38 +0000 Subject: [PATCH] Fixed a dodgy type git-svn-id: http://picoc.googlecode.com/svn/trunk@125 21eae674-98b7-11dd-bd71-f92a316d2d60 --- heap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/heap.c b/heap.c index 815f461..0a32a4c 100644 --- a/heap.c +++ b/heap.c @@ -6,8 +6,8 @@ #ifdef SURVEYOR_HOST #define HEAP_SIZE C_HEAPSIZE -static unsigned char *HeapMemory = (unsigned char *)C_HEAPSTART; -static void *HeapBottom = C_HEAPSTART + HEAP_SIZE; /* the bottom of the (downward-growing) heap */ +static unsigned char *HeapMemory = (unsigned char *)C_HEAPSTART; /* all memory - stack and heap */ +static void *HeapBottom = (unsigned char *)C_HEAPSTART + HEAP_SIZE; /* the bottom of the (downward-growing) heap */ #else static unsigned char HeapMemory[HEAP_SIZE]; /* all memory - stack and heap */ static void *HeapBottom = &HeapMemory[HEAP_SIZE]; /* the bottom of the (downward-growing) heap */