diff options
| author | Paul Eggert | 2019-07-22 21:27:33 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-07-22 21:28:18 -0700 |
| commit | f378ed1a0b1ca2ceed5afabcf5f303ae339039ba (patch) | |
| tree | 767e994477690e2681cb7fe027af7d708efd6cc6 /test/src | |
| parent | 97477edaf2044e51696f46b166b43801893156a3 (diff) | |
| download | emacs-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/src')
0 files changed, 0 insertions, 0 deletions