Skip to content

Commit d0c92e8

Browse files
isidenticalbenjaminp
authored andcommitted
closes bpo-37446: resolve undefined behavior in Python/hamt.c (GH-17727)
1 parent dfef986 commit d0c92e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/hamt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1864,7 +1864,7 @@ hamt_node_array_without(PyHamtNode_Array *self,
18641864
continue;
18651865
}
18661866

1867-
bitmap |= 1 << i;
1867+
bitmap |= 1U << i;
18681868

18691869
if (IS_BITMAP_NODE(node)) {
18701870
PyHamtNode_Bitmap *child = (PyHamtNode_Bitmap *)node;

0 commit comments

Comments
 (0)