From 3b5901143dc9be51c2ddce7478ef7b775fe7a6c3 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 16 Nov 2013 00:17:22 +0100 Subject: [PATCH] Fix compiler warning on Windows 64 bit: _init_pos_args() result type is Py_ssize_t, not int --- Modules/_ctypes/_ctypes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 1cf65b3533..f47dbdf1ff 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)) { -- 2.49.0