summaryrefslogtreecommitdiffstats
path: root/Objects/dictobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-09-08 18:16:07 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-09-08 18:16:07 (GMT)
commitdee6e252cc59c3143786f3e4cfaa1a6c335381b6 (patch)
tree8dc81840adf2e06647497aeeffab191581ae7285 /Objects/dictobject.c
parentf3fd06a2e4d42cf8e4e82a5b6cbff1e5a515aff3 (diff)
downloadcpython-dee6e252cc59c3143786f3e4cfaa1a6c335381b6.zip
cpython-dee6e252cc59c3143786f3e4cfaa1a6c335381b6.tar.gz
cpython-dee6e252cc59c3143786f3e4cfaa1a6c335381b6.tar.bz2
Split lookdict_unicode_nodummy() assertion to debug
Issue #27350.
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r--Objects/dictobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 98515e9..cd25803 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -802,7 +802,8 @@ lookdict_unicode_nodummy(PyDictObject *mp, PyObject *key,
return DKIX_EMPTY;
}
ep = &ep0[ix];
- assert(ep->me_key != NULL && PyUnicode_CheckExact(ep->me_key));
+ assert(ep->me_key != NULL);
+ assert(PyUnicode_CheckExact(ep->me_key));
if (ep->me_key == key ||
(ep->me_hash == hash && unicode_eq(ep->me_key, key))) {
if (hashpos != NULL)