diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-12-31 02:51:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-31 02:51:18 (GMT) |
commit | a278ae19b4daa1deb11e2a8eed38838027e90ece (patch) | |
tree | df6db7786e1e0058c2cbddc346414db4b564b05c /Python | |
parent | ec941568bdb25e164a87a23cf1b8870ac047b4e3 (diff) | |
download | cpython-a278ae19b4daa1deb11e2a8eed38838027e90ece.zip cpython-a278ae19b4daa1deb11e2a8eed38838027e90ece.tar.gz cpython-a278ae19b4daa1deb11e2a8eed38838027e90ece.tar.bz2 |
closes bpo-37446: resolve undefined behavior in Python/hamt.c (GH-17727)
(cherry picked from commit d0c92e81aa2171228a23cb2bed36f7dab975257d)
Co-authored-by: Batuhan Taşkaya <47358913+isidentical@users.noreply.github.com>
Diffstat (limited to 'Python')
-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 3841259..5efc8d7 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; |