projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff858cd
)
(hash_value_for_key): Prevent endless loop when 0 was stored in a
author
Richard Kenner
<kenner@gcc.gnu.org>
Sun, 5 May 1996 17:13:21 +0000
(13:13 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Sun, 5 May 1996 17:13:21 +0000
(13:13 -0400)
hashtable.
From-SVN: r11926
gcc/objc/hash.c
patch
|
blob
|
history
diff --git
a/gcc/objc/hash.c
b/gcc/objc/hash.c
index 33912743fd82e7b2773c97407ee6687a128ccba5..b0245733bfbb632eb5fc5ef103b4d2db10f7727d 100644
(file)
--- a/
gcc/objc/hash.c
+++ b/
gcc/objc/hash.c
@@
-1,5
+1,5
@@
/* Hash tables for Objective C internal structures
- Copyright (C) 1993 Free Software Foundation, Inc.
+ Copyright (C) 1993
, 1996
Free Software Foundation, Inc.
This file is part of GNU CC.
@@
-243,9
+243,10
@@
hash_value_for_key (cache_ptr cache, const void *key)
if (node)
do {
- if ((*cache->compare_func)(node->key, key))
+ if ((*cache->compare_func)(node->key, key))
{
retval = node->value;
- else
+ break;
+ } else
node = node->next;
} while (!retval && node);