aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias EngdegÄrd2024-02-22 20:15:33 +0100
committerMattias EngdegÄrd2024-02-23 11:09:49 +0100
commit53e60fb004c0e8b40b01fcfcf7f406557e35aa3e (patch)
tree216de858247e86b7d0ac77f7511bdcde98807189 /src
parentf85280503a3a67e1618069b1c7d6810efa924fe8 (diff)
downloademacs-53e60fb004c0e8b40b01fcfcf7f406557e35aa3e.tar.gz
emacs-53e60fb004c0e8b40b01fcfcf7f406557e35aa3e.zip
* src/fns.c (hash_string): Suppress warning on 32-bit platforms
Remove a shift-too-wide complaint by GCC in code that is never reached on platforms where that shift is too wide.
Diffstat (limited to 'src')
-rw-r--r--src/fns.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fns.c b/src/fns.c
index 0a9692f36e8..737757d06cc 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -5086,6 +5086,8 @@ hash_string (char const *ptr, ptrdiff_t len)
5086 /* String is shorter than an EMACS_UINT. Use smaller loads. */ 5086 /* String is shorter than an EMACS_UINT. Use smaller loads. */
5087 eassume (p <= end && end - p < sizeof (EMACS_UINT)); 5087 eassume (p <= end && end - p < sizeof (EMACS_UINT));
5088 EMACS_UINT tail = 0; 5088 EMACS_UINT tail = 0;
5089 verify (sizeof tail <= 8);
5090#if EMACS_INT_MAX > INT32_MAX
5089 if (end - p >= 4) 5091 if (end - p >= 4)
5090 { 5092 {
5091 uint32_t c; 5093 uint32_t c;
@@ -5093,6 +5095,7 @@ hash_string (char const *ptr, ptrdiff_t len)
5093 tail = (tail << (8 * sizeof c)) + c; 5095 tail = (tail << (8 * sizeof c)) + c;
5094 p += sizeof c; 5096 p += sizeof c;
5095 } 5097 }
5098#endif
5096 if (end - p >= 2) 5099 if (end - p >= 2)
5097 { 5100 {
5098 uint16_t c; 5101 uint16_t c;