• Paul Eggert's avatar
    * lread.c (hash_string): Use size_t, not int, for hash computation. · 2f30ecd0
    Paul Eggert authored
    Normally we prefer signed values; but hashing is special, because
    it's better to use unsigned division on hash table sizes so that
    the remainder is nonnegative.  Also, size_t is the natural width
    for hashing into memory.  The previous code used 'int', which doesn't
    retain enough info to hash well into very large tables.
    (oblookup, oblookup_last_bucket_number, Funintern): Likewise.
    2f30ecd0
ChangeLog 113 KB