* mf-runtime.c (__mfu_unregister): Warning fix for char unsigned.
authorAlan Modra <amodra@bigpond.net.au>
Mon, 4 Apr 2005 10:09:46 +0000 (10:09 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Mon, 4 Apr 2005 10:09:46 +0000 (19:39 +0930)
From-SVN: r97532

libmudflap/ChangeLog
libmudflap/mf-runtime.c

index 0fa7c2d7dc74c684f966f5c9cda42265d7f099f3..29f6f5187b8b1e710b7617e8cfe7f62409239154 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 a4adf3eee512d0cf9b9749cc13f138137af07a58..5732c0634082e9d3c2aaf3e1c9348b6df7130909 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);