Kaydet (Commit) 3b590114 authored tarafından Victor Stinner's avatar Victor Stinner

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

Py_ssize_t, not int
üst 042cb465
......@@ -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)) {
......
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