From 7cc95f5069c8983afb8a55928db6956abe2d5afa Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Sun, 28 Jan 2018 02:07:09 +0900 Subject: [PATCH] Fix wrong assert in unicodeobject (GH-5340) --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 4b90cc364b..775bd15cf6 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; -- 2.50.1