Skip to content

Commit 7876778

Browse files
miss-islington1st1
andcommitted
bpo-32436: Fix compiler warning (GH-5483) (GH-5486)
(cherry picked from commit 55e0839) Co-authored-by: Yury Selivanov <yury@magic.io>
1 parent 5d2dcd0 commit 7876778

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/hamt.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2358,6 +2358,8 @@ _PyHamt_Without(PyHamtObject *o, PyObject *key)
23582358
Py_INCREF(o);
23592359
return o;
23602360
case W_NEWNODE: {
2361+
assert(new_root != NULL);
2362+
23612363
PyHamtObject *new_o = hamt_alloc();
23622364
if (new_o == NULL) {
23632365
Py_DECREF(new_root);

0 commit comments

Comments
 (0)