mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
closes bpo-37446: resolve undefined behavior in Python/hamt.c (GH-17727)
(cherry picked from commit d0c92e81aa)
Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ec941568bd
commit
a278ae19b4
@@ -1864,7 +1864,7 @@ hamt_node_array_without(PyHamtNode_Array *self,
|
||||
continue;
|
||||
}
|
||||
|
||||
bitmap |= 1 << i;
|
||||
bitmap |= 1U << i;
|
||||
|
||||
if (IS_BITMAP_NODE(node)) {
|
||||
PyHamtNode_Bitmap *child = (PyHamtNode_Bitmap *)node;
|
||||
|
||||
Reference in New Issue
Block a user