]> 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>
Wed, 31 Aug 2022 23:25:13 +0000 (01:25 +0200)
commitab089716f1dd37c71a293ee9f30a7541ecec95fb
tree11e7a1e9a3d4b684867988d5564a80bda5ed7464
parentcd053975e1f38875aca012504d72480da680a9c9
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