mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Use correct format specifier for Py_ssize_t variable to PyArg_ParseTuple().
This commit is contained in:
parent
977485d888
commit
7a2f83b706
1 changed files with 1 additions and 1 deletions
|
@ -1195,7 +1195,7 @@ array_fromfile(arrayobject *self, PyObject *args)
|
||||||
PyObject *f;
|
PyObject *f;
|
||||||
Py_ssize_t n;
|
Py_ssize_t n;
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
if (!PyArg_ParseTuple(args, "Oi:fromfile", &f, &n))
|
if (!PyArg_ParseTuple(args, "On:fromfile", &f, &n))
|
||||||
return NULL;
|
return NULL;
|
||||||
fp = PyFile_AsFile(f);
|
fp = PyFile_AsFile(f);
|
||||||
if (fp == NULL) {
|
if (fp == NULL) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue