hashtable: bugfix - increment size only when new bins are linked
authorBrian Norris <banorris@uci.edu>
Sat, 11 Aug 2012 00:44:36 +0000 (17:44 -0700)
committerBrian Norris <banorris@uci.edu>
Sat, 11 Aug 2012 00:49:01 +0000 (17:49 -0700)
In both put() and ensureptr(), the 'size' counter should not be incremented
until we decide if we're adding a new bin or not. When incremented improperly,
'size' ended up out of sync with the hash table; it reported a size much larger
than the actual table.


No differences found