OSDN Git Service

* mf-runtime.c (__mfu_unregister): Warning fix for char unsigned.
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Apr 2005 10:09:46 +0000 (10:09 +0000)
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 4 Apr 2005 10:09:46 +0000 (10:09 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97532 138bc75d-0d04-0410-961f-82ee72b054a4

libmudflap/ChangeLog
libmudflap/mf-runtime.c

index 0fa7c2d..29f6f51 100644 (file)
@@ -1,3 +1,7 @@
+2005-04-04  Alan Modra  <amodra@bigpond.net.au>
+
+       * mf-runtime.c (__mfu_unregister): Warning fix for char unsigned.
+
 2005-03-21  Mike Stump  <mrs@apple.com>
 
        * mf-heuristics.c: Fix whitespace at end of line.
index a4adf3e..5732c06 100644 (file)
@@ -1273,9 +1273,8 @@ __mfu_unregister (void *ptr, size_t sz, int type)
           }
 
         /* Manage the object cemetary.  */
-        if (__mf_opts.persistent_count > 0 &&
-            old_obj->type >= 0 &&
-            old_obj->type <= __MF_TYPE_MAX_CEM)
+        if (__mf_opts.persistent_count > 0
+           && (unsigned) old_obj->type <= __MF_TYPE_MAX_CEM)
           {
             old_obj->deallocated_p = 1;
             old_obj->dealloc_pc = (uintptr_t) __builtin_return_address (0);