[Python-checkins] bpo-32436: Fix compiler warning (#5483)

Yury Selivanov webhook-mailer at python.org
Thu Feb 1 22:24:59 EST 2018


https://github.com/python/cpython/commit/55e0839f2672e029c2b96514028c77c31ffbe41f
commit: 55e0839f2672e029c2b96514028c77c31ffbe41f
branch: master
author: Yury Selivanov <yury at magic.io>
committer: GitHub <noreply at github.com>
date: 2018-02-01T22:24:56-05:00
summary:

bpo-32436: Fix compiler warning (#5483)

files:
M Python/hamt.c

diff --git a/Python/hamt.c b/Python/hamt.c
index 8998dbd76d2e..c9acbbcc5acc 100644
--- a/Python/hamt.c
+++ b/Python/hamt.c
@@ -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);



More information about the Python-checkins mailing list