]> granicus.if.org Git - python/commitdiff
bpo-32436: Fix compiler warning (GH-5483) (GH-5486)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 2 Feb 2018 03:58:19 +0000 (19:58 -0800)
committerYury Selivanov <yury@magic.io>
Fri, 2 Feb 2018 03:58:19 +0000 (22:58 -0500)
(cherry picked from commit 55e0839f2672e029c2b96514028c77c31ffbe41f)

Co-authored-by: Yury Selivanov <yury@magic.io>
Python/hamt.c

index 8998dbd76d2efabf3096e82d8d8b939decc1b114..c9acbbcc5acc3ca2eddce0edcbffd26e8171132b 100644 (file)
@@ -2358,6 +2358,8 @@ _PyHamt_Without(PyHamtObject *o, PyObject *key)
             Py_INCREF(o);
             return o;
         case W_NEWNODE: {
+            assert(new_root != NULL);
+
             PyHamtObject *new_o = hamt_alloc();
             if (new_o == NULL) {
                 Py_DECREF(new_root);