repo.or.cz
/
isl.git
/
commitdiff
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
350d59f
)
isl_hash_table_remove: update number of entries
author
Sven Verdoolaege
<skimo@kotnet.org>
Thu, 22 Jan 2009 20:46:36 +0000
(22 21:46 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Tue, 3 Feb 2009 20:47:07 +0000
(3 21:47 +0100)
Otherwise, removing an element and later adding it back again
would increase the number of elements in the table, quickly
leading to overflows.
isl_hash.c
patch
|
blob
|
blame
|
history
diff --git
a/isl_hash.c
b/isl_hash.c
index
41076b8
..
3a39bbc
100644
(file)
--- a/
isl_hash.c
+++ b/
isl_hash.c
@@
-91,4
+91,5
@@
void isl_hash_table_remove(struct isl_ctx *ctx,
entry->hash = 0;
entry->data = NULL;
+ table->n--;
}