mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix compiler warning on Windows 64 bit: _init_pos_args() result type is
Py_ssize_t, not int
This commit is contained in:
parent
042cb465f6
commit
3b5901143d
1 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue