commit | d0c92e81aa2171228a23cb2bed36f7dab975257d | [log] [tgz] |
---|---|---|
author | Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com> | Tue Dec 31 05:31:52 2019 +0300 |
committer | Benjamin Peterson <benjamin@python.org> | Mon Dec 30 18:31:52 2019 -0800 |
tree | 5fbed2bc9a5b5ffd0a730da0477f17e2ffbe8075 | |
parent | dfef986f12dd92bd6434117bba0db3cbb4e65243 [diff] |
closes bpo-37446: resolve undefined behavior in Python/hamt.c (GH-17727)
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 @@ continue; } - bitmap |= 1 << i; + bitmap |= 1U << i; if (IS_BITMAP_NODE(node)) { PyHamtNode_Bitmap *child = (PyHamtNode_Bitmap *)node;