Mercurial > cpython-lru_cache-weakref
diff Objects/unicodeobject.c @ 86878:2ed8d500e113
Issue #19424: Fix a compiler warning on comparing signed/unsigned size_t
Patch written by Zachary Ware.
| author | Victor Stinner <victor.stinner@gmail.com> |
|---|---|
| date | Sun, 03 Nov 2013 13:53:12 +0100 |
| parents | 52ec6a3eeda5 |
| children | 536a7c09c7fd |
line wrap: on
line diff
--- a/Objects/unicodeobject.c Sun Nov 03 14:34:25 2013 +0200 +++ b/Objects/unicodeobject.c Sun Nov 03 13:53:12 2013 +0100 @@ -10581,7 +10581,7 @@ kind = PyUnicode_KIND(uni); if (kind == PyUnicode_1BYTE_KIND) { const void *data = PyUnicode_1BYTE_DATA(uni); - Py_ssize_t len1 = PyUnicode_GET_LENGTH(uni); + size_t len1 = (size_t)PyUnicode_GET_LENGTH(uni); size_t len, len2 = strlen(str); int cmp;
