projects
/
rrq
/
rrqmisc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cleanup
[rrq/rrqmisc.git]
/
pvector
/
hashvector.c
diff --git
a/pvector/hashvector.c
b/pvector/hashvector.c
index 5164ffe2e209291388fafcbf812ae57940ed7233..11fdae845a9837e04e46ebc2450b433078af0ed0 100644
(file)
--- a/
pvector/hashvector.c
+++ b/
pvector/hashvector.c
@@
-105,8
+105,9
@@
int hashvector_delete(hashvector *hv,void *item) {
}
*p = HV_HOLE;
hv->holes++;
+ hv->fill--;
if ( hv->table.size > 256 ) {
- if ( hv->fill < hv->table.size /
2
) {
+ if ( hv->fill < hv->table.size /
4
) {
hashvector_resize( hv, hv->table.size / 2 );
}
}