diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-01-27 17:41:24 (GMT) |
---|---|---|
committer | INADA Naoki <methane@users.noreply.github.com> | 2018-01-27 17:41:24 (GMT) |
commit | d7274c6638fc88d72b73f8cdc6b888270a5e7a50 (patch) | |
tree | e0d541974796fa0d3ccffb197f601bae5ece361f /Objects | |
parent | 12ae40766ea39f09c2ddf6842017ee80f7f3d00b (diff) | |
download | cpython-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.c | 2 |
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; |