summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-01-27 17:41:24 (GMT)
committerINADA Naoki <methane@users.noreply.github.com>2018-01-27 17:41:24 (GMT)
commitd7274c6638fc88d72b73f8cdc6b888270a5e7a50 (patch)
treee0d541974796fa0d3ccffb197f601bae5ece361f /Objects
parent12ae40766ea39f09c2ddf6842017ee80f7f3d00b (diff)
downloadcpython-d7274c6638fc88d72b73f8cdc6b888270a5e7a50.zip
cpython-d7274c6638fc88d72b73f8cdc6b888270a5e7a50.tar.gz
cpython-d7274c6638fc88d72b73f8cdc6b888270a5e7a50.tar.bz2
Fix wrong assert in unicodeobject (GH-5340)
(cherry picked from commit 7cc95f5069c8983afb8a55928db6956abe2d5afa)
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 86cac96..9ccd06e 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -11217,7 +11217,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;