diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-03-20 11:32:24 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-03-20 11:32:24 +0100 |
commit | f50e1877245123a21f053d73951594794fa18500 (patch) | |
tree | 87e7cee7867121452aa3b880ca0b950be1fefde7 /Objects | |
parent | 7f04d4d4b7fe0ed5c56b1778c63ee6ac2170a694 (diff) | |
download | cpython-git-f50e1877245123a21f053d73951594794fa18500.tar.gz |
Fix compiler warnings: comparison between signed and unsigned numbers
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 ab22289f50..56d9a023dd 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -4799,7 +4799,7 @@ _Py_DecodeUTF8_surrogateescape(const char *s, Py_ssize_t size) /* Note: size will always be longer than the resulting Unicode character count */ - if (PY_SSIZE_T_MAX / sizeof(wchar_t) < (size + 1)) + if (PY_SSIZE_T_MAX / (Py_ssize_t)sizeof(wchar_t) < (size + 1)) return NULL; unicode = PyMem_RawMalloc((size + 1) * sizeof(wchar_t)); if (!unicode) |