commit | 7cc95f5069c8983afb8a55928db6956abe2d5afa | [log] [tgz] |
---|---|---|
author | INADA Naoki <methane@users.noreply.github.com> | Sun Jan 28 02:07:09 2018 +0900 |
committer | GitHub <noreply@github.com> | Sun Jan 28 02:07:09 2018 +0900 |
tree | 020ab6d5a57b9cf78cc9cb9410a673d9d6bd82d4 | |
parent | 4defba3b95ec0f52ce75b8466831d30fb5d333f3 [diff] [blame] |
Fix wrong assert in unicodeobject (GH-5340)
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 @@ 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;