]> Savannah Git Hosting - gnulib.git/commit
hamt: fix technically undefined behavior
authorMarc Nieper-Wißkirchen <marc@nieper-wisskirchen.de>
Fri, 12 Aug 2022 14:00:23 +0000 (16:00 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 1 Sep 2022 12:11:22 +0000 (14:11 +0200)
commit7bccff27642557bcd96f7320859b7d0b1a6309b4
treeabf013401ebdc695c933ea220242eda5691aca34
parent7abc0e1bf1dd18c48674663dd384d345d506421c
hamt: fix technically undefined behavior

Bug reported by Bruno Haible in
<https://lists.gnu.org/r/bug-gnulib/2022-04/msg00023.html>.
* lib/hamt.c (entry_insert): Remove technically undefined
behavior when shifting an integer of N bits by N or more bits.
ChangeLog
lib/hamt.c