From: Victor Stinner Date: Fri, 15 Nov 2013 23:17:22 +0000 (+0100) Subject: Fix compiler warning on Windows 64 bit: _init_pos_args() result type is X-Git-Tag: v3.4.0b1~255 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b5901143dc9be51c2ddce7478ef7b775fe7a6c3;p=thirdparty%2FPython%2Fcpython.git Fix compiler warning on Windows 64 bit: _init_pos_args() result type is Py_ssize_t, not int --- diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 1cf65b3533a2..f47dbdf1ff47 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -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)) {