diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-10-16 03:58:32 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-10-16 03:58:32 (GMT) |
commit | fa5021699ab5d906d5fdee004a85f051294126c4 (patch) | |
tree | 8695379d2b4c27a7089527c935128bdfe14be93d /Objects | |
parent | 380ec63f23d2e76be9aec90493de174c6d01c2df (diff) | |
parent | b6dc9b7554517f97c8474bb58a059a5d036745d2 (diff) | |
download | cpython-fa5021699ab5d906d5fdee004a85f051294126c4.zip cpython-fa5021699ab5d906d5fdee004a85f051294126c4.tar.gz cpython-fa5021699ab5d906d5fdee004a85f051294126c4.tar.bz2 |
Merge 3.3
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 b8605a7..3bf1932 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -9651,7 +9651,7 @@ case_operation(PyObject *self, kind = PyUnicode_KIND(self); data = PyUnicode_DATA(self); length = PyUnicode_GET_LENGTH(self); - if (length > PY_SSIZE_T_MAX / (3 * sizeof(Py_UCS4))) { + if ((size_t) length > PY_SSIZE_T_MAX / (3 * sizeof(Py_UCS4))) { PyErr_SetString(PyExc_OverflowError, "string is too long"); return NULL; } |