aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Eggert2019-07-22 21:27:33 -0700
committerPaul Eggert2019-07-22 21:28:18 -0700
commitf378ed1a0b1ca2ceed5afabcf5f303ae339039ba (patch)
tree767e994477690e2681cb7fe027af7d708efd6cc6 /test
parent97477edaf2044e51696f46b166b43801893156a3 (diff)
downloademacs-f378ed1a0b1ca2ceed5afabcf5f303ae339039ba.tar.gz
emacs-f378ed1a0b1ca2ceed5afabcf5f303ae339039ba.zip
Avoid overexposing fixnums for hash codes
Following a suggestion by Stefan Monnier in: https://lists.gnu.org/r/emacs-devel/2019-07/msg00530.html * doc/lispref/hash.texi (Creating Hash, Defining Hash): * src/fns.c (Fsxhash_eq, Fsxhash_eql, Fsxhash_equal, Fmake_hash_table): Don’t insist that hash codes be fixnums, reverting the recent doc changes to the contrary. * src/bytecode.c (exec_byte_code): Special-case only the eq case, as the others aren’t worth tuning now that we treat bignum hashes like fixnums. * src/fns.c (hashfn_user_defined): If the hash code is a bignum, reduce its hash down to a fixnum.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions