diff options
author | Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com> | 2019-12-31 02:31:52 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2019-12-31 02:31:52 (GMT) |
commit | d0c92e81aa2171228a23cb2bed36f7dab975257d (patch) | |
tree | 5fbed2bc9a5b5ffd0a730da0477f17e2ffbe8075 /Python/hamt.c | |
parent | dfef986f12dd92bd6434117bba0db3cbb4e65243 (diff) | |
download | cpython-d0c92e81aa2171228a23cb2bed36f7dab975257d.zip cpython-d0c92e81aa2171228a23cb2bed36f7dab975257d.tar.gz cpython-d0c92e81aa2171228a23cb2bed36f7dab975257d.tar.bz2 |
closes bpo-37446: resolve undefined behavior in Python/hamt.c (GH-17727)
Diffstat (limited to 'Python/hamt.c')
-rw-r--r-- | Python/hamt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/hamt.c b/Python/hamt.c index ea659c8..f5586ee 100644 --- a/Python/hamt.c +++ b/Python/hamt.c @@ -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; |