X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Fntheap.c;h=9372dd12fec20ba9538e17090cc6172baabf22c4;hb=296255bdcdce5a2c39b20475bad2ac2ba25bfb84;hp=8e54bc8e52aa3a0a36af21a7eb955b33f3533c41;hpb=c8aa261a7bf3eb1389d2e018be1d715f73cacd66;p=chise%2Fxemacs-chise.git- diff --git a/src/ntheap.c b/src/ntheap.c index 8e54bc8..9372dd1 100644 --- a/src/ntheap.c +++ b/src/ntheap.c @@ -80,7 +80,7 @@ get_data_end (void) return data_region_end; } -static char * +static unsigned char * allocate_heap (void) { /* The base address for our GNU malloc heap is chosen in conjunction @@ -144,7 +144,7 @@ allocate_heap (void) PAGE_NOACCESS); #endif - return ptr; + return (unsigned char*) ptr; } @@ -227,7 +227,7 @@ sbrk (unsigned long increment) void recreate_heap (char *executable_path) { - unsigned char *tmp; + void *tmp; /* First reserve the upper part of our heap. (We reserve first because there have been problems in the past where doing the