diff options
Diffstat (limited to 'Objects/complexobject.c')
-rw-r--r-- | Objects/complexobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 08c8c89..f29a90f 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -680,7 +680,7 @@ complex_subtype_from_string(PyTypeObject *type, PyObject *v) #ifdef Py_USING_UNICODE char s_buffer[256]; #endif - int len; + Py_ssize_t len; if (PyString_Check(v)) { s = PyString_AS_STRING(v); @@ -699,7 +699,7 @@ complex_subtype_from_string(PyTypeObject *type, PyObject *v) NULL)) return NULL; s = s_buffer; - len = (int)strlen(s); + len = strlen(s); } #endif else if (PyObject_AsCharBuffer(v, &s, &len)) { |