projects
/
libusual.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
363ffc1
)
hashtab: fix thinko in hashtab_delete()
author
Marko Kreen
<markokr@gmail.com>
Thu, 27 Jan 2011 11:00:03 +0000
(13:00 +0200)
committer
Marko Kreen
<markokr@gmail.com>
Thu, 27 Jan 2011 11:00:03 +0000
(13:00 +0200)
usual/hashtab-impl.h
patch
|
blob
|
blame
|
history
diff --git
a/usual/hashtab-impl.h
b/usual/hashtab-impl.h
index f7df012f7b0fad3f455e84482dffca4932a899b3..2b5402307218505d5a11eb62e23a9ab3c863e260 100644
(file)
--- a/
usual/hashtab-impl.h
+++ b/
usual/hashtab-impl.h
@@
-181,7
+181,7
@@
static void hashtab_delete(struct HashTab *h, htab_key_t key, void *arg)
/* find right tab */
hd = container_of(vptr, struct HashItem, value);
- while (h && ((hd < h->tab)
&&
(hd >= h->tab + h->size)))
+ while (h && ((hd < h->tab)
||
(hd >= h->tab + h->size)))
h = h->next;
/* calculate index */