Commit 330e5a9c authored by Victor Stinner's avatar Victor Stinner

Fix compiler warning on Windows 64 bit: _init_pos_args() result type is

Py_ssize_t, not int
parent b60e304e
...@@ -4054,7 +4054,7 @@ Struct_init(PyObject *self, PyObject *args, PyObject *kwds) ...@@ -4054,7 +4054,7 @@ Struct_init(PyObject *self, PyObject *args, PyObject *kwds)
return -1; return -1;
} }
if (PyTuple_GET_SIZE(args)) { if (PyTuple_GET_SIZE(args)) {
int res = _init_pos_args(self, Py_TYPE(self), Py_ssize_t res = _init_pos_args(self, Py_TYPE(self),
args, kwds, 0); args, kwds, 0);
if (res == -1) if (res == -1)
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment