chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
struct/sym.c: Fix loading following table extension.
[mLib]
/
struct
/
sym.c
diff --git
a/struct/sym.c
b/struct/sym.c
index 25e297af93dde6ffc7fc18164468e637839e300e..4eca8916ef09b91bc88d2a140f80b9f216dc840a 100644
(file)
--- a/
struct/sym.c
+++ b/
struct/sym.c
@@
-179,7
+179,7
@@
void *sym_find(sym_table *t, const char *n, long l, size_t sz, unsigned *f)
if (t->load)
t->load--;
if (!t->load && hash_extend(&t->t))
- t->load = SYM_LIMIT(t->t.mask + 1);
+ t->load = SYM_LIMIT(t->t.mask
/2
+ 1);
/* --- Finished that, so return the new symbol block --- */