* mf-runtime.c (__mfu_unregister): Warning fix for char unsigned.

From-SVN: r97532
This commit is contained in:
Alan Modra 2005-04-04 10:09:46 +00:00 committed by Alan Modra
parent 4b8d544bc6
commit 58dc8547f2
2 changed files with 6 additions and 3 deletions

View 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.

View 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);