aboutsummaryrefslogtreecommitdiffstats
path: root/src/gmalloc.c
diff options
context:
space:
mode:
authorKen Brown2012-05-20 08:19:13 -0400
committerKen Brown2012-05-20 08:19:13 -0400
commit1b170bc63c2f3a3fbe6ba6996d5a015e82634909 (patch)
tree99b642297459b0bed3ef5a61403a2a5a63439772 /src/gmalloc.c
parent754b8051171cab674ebf18893c8fbbc98b7ffaa7 (diff)
downloademacs-1b170bc63c2f3a3fbe6ba6996d5a015e82634909.tar.gz
emacs-1b170bc63c2f3a3fbe6ba6996d5a015e82634909.zip
Get rid of compiler warnings on Cygwin.
* src/gmalloc.c (_free_internal_nolock, _realloc_internal_nolock) [CYGWIN]: Cast ptr to (char *) before comparing to _heapbase.
Diffstat (limited to 'src/gmalloc.c')
-rw-r--r--src/gmalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gmalloc.c b/src/gmalloc.c
index 38406fd029a..b53199e7312 100644
--- a/src/gmalloc.c
+++ b/src/gmalloc.c
@@ -1004,7 +1004,7 @@ _free_internal_nolock (void *ptr)
1004 return; 1004 return;
1005 1005
1006#ifdef CYGWIN 1006#ifdef CYGWIN
1007 if (ptr < _heapbase) 1007 if ((char *) ptr < _heapbase)
1008 /* We're being asked to free something in the static heap. */ 1008 /* We're being asked to free something in the static heap. */
1009 return; 1009 return;
1010#endif 1010#endif
@@ -1341,7 +1341,7 @@ _realloc_internal_nolock (void *ptr, size_t size)
1341 return _malloc_internal_nolock (size); 1341 return _malloc_internal_nolock (size);
1342 1342
1343#ifdef CYGWIN 1343#ifdef CYGWIN
1344 if (ptr < _heapbase) 1344 if ((char *) ptr < _heapbase)
1345 /* ptr points into the static heap */ 1345 /* ptr points into the static heap */
1346 return special_realloc (ptr, size); 1346 return special_realloc (ptr, size);
1347#endif 1347#endif