emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r108318: Get rid of compiler warnings


From: Ken Brown
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r108318: Get rid of compiler warnings on Cygwin.
Date: Sun, 20 May 2012 08:19:13 -0400
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 108318
committer: Ken Brown <address@hidden>
branch nick: trunk
timestamp: Sun 2012-05-20 08:19:13 -0400
message:
  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.
modified:
  src/ChangeLog
  src/gmalloc.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-05-19 21:46:43 +0000
+++ b/src/ChangeLog     2012-05-20 12:19:13 +0000
@@ -1,3 +1,8 @@
+2012-05-20  Ken Brown  <address@hidden>
+
+       * gmalloc.c (_free_internal_nolock, _realloc_internal_nolock)
+       [CYGWIN]:  Cast ptr to (char *) before comparing to _heapbase.
+
 2012-05-19  Ken Brown  <address@hidden>
 
        * xfns.c (x_in_use): Remove `static' qualifier.

=== modified file 'src/gmalloc.c'
--- a/src/gmalloc.c     2012-04-22 19:23:51 +0000
+++ b/src/gmalloc.c     2012-05-20 12:19:13 +0000
@@ -1004,7 +1004,7 @@
     return;
 
 #ifdef CYGWIN
-  if (ptr < _heapbase)
+  if ((char *) ptr < _heapbase)
     /* We're being asked to free something in the static heap. */
     return;
 #endif
@@ -1341,7 +1341,7 @@
     return _malloc_internal_nolock (size);
 
 #ifdef CYGWIN
-  if (ptr < _heapbase)
+  if ((char *) ptr < _heapbase)
     /* ptr points into the static heap */
     return special_realloc (ptr, size);
 #endif


reply via email to

[Prev in Thread] Current Thread [Next in Thread]