diff options
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r-- | Objects/unicodeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 044b26e..b57a896 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -13569,7 +13569,7 @@ PyUnicode_Format(PyObject *format, PyObject *args) "* wants int"); goto onError; } - width = PyLong_AsLong(v); + width = PyLong_AsSsize_t(v); if (width == -1 && PyErr_Occurred()) goto onError; if (width < 0) { @@ -13609,7 +13609,7 @@ PyUnicode_Format(PyObject *format, PyObject *args) "* wants int"); goto onError; } - prec = PyLong_AsLong(v); + prec = _PyLong_AsInt(v); if (prec == -1 && PyErr_Occurred()) goto onError; if (prec < 0) |