summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2018-01-27 17:07:09 (GMT)
committerGitHub <noreply@github.com>2018-01-27 17:07:09 (GMT)
commit7cc95f5069c8983afb8a55928db6956abe2d5afa (patch)
tree020ab6d5a57b9cf78cc9cb9410a673d9d6bd82d4 /Objects
parent4defba3b95ec0f52ce75b8466831d30fb5d333f3 (diff)
downloadcpython-7cc95f5069c8983afb8a55928db6956abe2d5afa.zip
cpython-7cc95f5069c8983afb8a55928db6956abe2d5afa.tar.gz
cpython-7cc95f5069c8983afb8a55928db6956abe2d5afa.tar.bz2
Fix wrong assert in unicodeobject (GH-5340)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 4b90cc3..775bd15 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -11038,7 +11038,7 @@ _PyUnicode_EqualToASCIIId(PyObject *left, _Py_Identifier *right)
if (PyUnicode_CHECK_INTERNED(left))
return 0;
- assert(_PyUnicode_HASH(right_uni) != 1);
+ assert(_PyUnicode_HASH(right_uni) != -1);
hash = _PyUnicode_HASH(left);
if (hash != -1 && hash != _PyUnicode_HASH(right_uni))
return 0;