Define a LH_LOAD_FACTOR constant and note the range that it can be set to.
authorEric Haszlakiewicz <erh+git@nimenees.com>
Sat, 31 Mar 2012 22:33:58 +0000 (17:33 -0500)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Sat, 31 Mar 2012 22:33:58 +0000 (17:33 -0500)
commit64c0ca3690f98e978fd2fc8c6ca645243c27e3db
tree17ea82874c4705ad3900c4f23b35df1691139f19
parentaef439a1750a69c4721df50b83d696218a60db49
Define a LH_LOAD_FACTOR constant and note the range that it can be set to.
Change the resize check from "count > size" to "count >= size" to avoid a
potential infinite loop with high load factors and a full hash table.
linkhash.c
linkhash.h