summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-10-16 03:58:32 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-10-16 03:58:32 (GMT)
commitfa5021699ab5d906d5fdee004a85f051294126c4 (patch)
tree8695379d2b4c27a7089527c935128bdfe14be93d /Objects
parent380ec63f23d2e76be9aec90493de174c6d01c2df (diff)
parentb6dc9b7554517f97c8474bb58a059a5d036745d2 (diff)
downloadcpython-fa5021699ab5d906d5fdee004a85f051294126c4.zip
cpython-fa5021699ab5d906d5fdee004a85f051294126c4.tar.gz
cpython-fa5021699ab5d906d5fdee004a85f051294126c4.tar.bz2
Merge 3.3
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
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;
}