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

Py_ssize_t, not int
This commit is contained in:
Victor Stinner 2013-11-16 00:17:22 +01:00
parent 042cb465f6
commit 3b5901143d

View file

@ -4054,8 +4054,8 @@ Struct_init(PyObject *self, PyObject *args, PyObject *kwds)
return -1;
}
if (PyTuple_GET_SIZE(args)) {
int res = _init_pos_args(self, Py_TYPE(self),
args, kwds, 0);
Py_ssize_t res = _init_pos_args(self, Py_TYPE(self),
args, kwds, 0);
if (res == -1)
return -1;
if (res < PyTuple_GET_SIZE(args)) {