This repository has been archived by the owner on Mar 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix size calculation for hash tables
Addresses #44 The problem was that the compiler was producing int32_t sized results when figuring out sizes and offsets. Combine this with a large number of elements (large enough to overflow 32-bits) and the table would be allocated smaller than we needed. This solves the problem in the fewest keystrokes by promoting the size of a couple of fields to 64-bit, but has the side effect of changing the size of the hashtable struct.
- Loading branch information
Showing
2 changed files
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters