diff options
author | Alan Modra <amodra@bigpond.net.au> | 2005-04-04 10:09:46 +0000 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2005-04-04 19:39:46 +0930 |
commit | 58dc8547f2b7c92a91925db69faa21ce856e6ab0 (patch) | |
tree | 7fbbac6775750dd20e5624d92ffc3354fa0fe372 /libmudflap | |
parent | 4b8d544bc69dca9cd1afe0905a2f7816aa0cdbe3 (diff) | |
download | gcc-58dc8547f2b7c92a91925db69faa21ce856e6ab0.zip gcc-58dc8547f2b7c92a91925db69faa21ce856e6ab0.tar.gz gcc-58dc8547f2b7c92a91925db69faa21ce856e6ab0.tar.bz2 |
* mf-runtime.c (__mfu_unregister): Warning fix for char unsigned.
From-SVN: r97532
Diffstat (limited to 'libmudflap')
-rw-r--r-- | libmudflap/ChangeLog | 4 | ||||
-rw-r--r-- | libmudflap/mf-runtime.c | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/libmudflap/ChangeLog b/libmudflap/ChangeLog index 0fa7c2d..29f6f51 100644 --- a/libmudflap/ChangeLog +++ b/libmudflap/ChangeLog @@ -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. diff --git a/libmudflap/mf-runtime.c b/libmudflap/mf-runtime.c index a4adf3e..5732c06 100644 --- a/libmudflap/mf-runtime.c +++ b/libmudflap/mf-runtime.c @@ -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); |