]> git.eshelyaron.com Git - emacs.git/commit
Port knuth_hash to odd platforms
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 May 2024 15:42:57 +0000 (08:42 -0700)
committerEshel Yaron <me@eshelyaron.com>
Thu, 23 May 2024 07:43:27 +0000 (09:43 +0200)
commitd8893a077c3e87605f7d1630d35688b734cc86d2
tree1b8f0b404c85c47c42dc8a7b000c530455539aae
parent8fe1f8756612ac17e05ceade3b6f7aaab3523b1b
Port knuth_hash to odd platforms

* src/lisp.h (hash_hash_t, knuth_hash): Use unsigned int and
unsigned long long int rather than uint32_t and uint64_t, as POSIX
does not guarantee the presence of uint64_t, and uint32_t and
uint64_t both in theory have problems with undefined behavior on
integer overflow.  This doesn’t affect behavior (or even machine
code) on typical platforms.

(cherry picked from commit 9bcd644408367b1d57e62a7f73b4ef4a3cd366b4)
src/lisp.h