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;