diff options
author | Kresten Krab Thorup <krab@gcc.gnu.org> | 1993-04-26 16:06:37 +0000 |
---|---|---|
committer | Kresten Krab Thorup <krab@gcc.gnu.org> | 1993-04-26 16:06:37 +0000 |
commit | a7ab3794a9967ba1aedecacdbb4cb700dcb03fbb (patch) | |
tree | c0e8d76217f1bf8d5b9e3c90ec680a116ee5c4c9 /gcc/objc/hash.c | |
parent | 0cd02cbbfb635002ecd371f79243933fc34b1f47 (diff) | |
download | gcc-a7ab3794a9967ba1aedecacdbb4cb700dcb03fbb.zip gcc-a7ab3794a9967ba1aedecacdbb4cb700dcb03fbb.tar.gz gcc-a7ab3794a9967ba1aedecacdbb4cb700dcb03fbb.tar.bz2 |
Runtime portability cleanup
From-SVN: r4235
Diffstat (limited to 'gcc/objc/hash.c')
-rw-r--r-- | gcc/objc/hash.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/objc/hash.c b/gcc/objc/hash.c index 7189c1d..294d87b 100644 --- a/gcc/objc/hash.c +++ b/gcc/objc/hash.c @@ -45,7 +45,6 @@ hash_new (unsigned int size, hash_func_type hash_func, { cache_ptr cache; - /* Pass me a value greater than 0 and a power of 2. */ assert (size); assert (!(size & (size - 1))); @@ -84,7 +83,7 @@ hash_delete (cache_ptr cache) /* Purge all key/value pairs from the table. */ - while (node = hash_next (cache, NULL)) + while ((node = hash_next (cache, NULL))) hash_remove (cache, node->key); /* Release the array of nodes and the cache itself. */ @@ -145,7 +144,7 @@ hash_add (cache_ptr *cachep, const void *key, void *value) *cachep, (*cachep)->size, new->size); /* Copy the nodes from the first hash table to the new one. */ - while (node1 = hash_next (*cachep, node1)) + while ((node1 = hash_next (*cachep, node1))) hash_add (&new, node1->key, node1->value); /* Trash the old cache. */ |