diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/complexobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 3dbaea3..c074aee 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -787,7 +787,7 @@ complex_subtype_from_string(PyTypeObject *type, PyObject *v) } /* end of switch */ - } while (*s!='\0' && !sw_error); + } while (s - start < len && !sw_error); if (sw_error) { PyErr_SetString(PyExc_ValueError, |