diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-15 23:17:22 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-15 23:17:22 (GMT) |
commit | 3b5901143dc9be51c2ddce7478ef7b775fe7a6c3 (patch) | |
tree | 67197404ec81c576ae010524017bb3fca408370c | |
parent | 042cb465f667652df23c2e9d9ba347efeebba5a8 (diff) | |
download | cpython-3b5901143dc9be51c2ddce7478ef7b775fe7a6c3.zip cpython-3b5901143dc9be51c2ddce7478ef7b775fe7a6c3.tar.gz cpython-3b5901143dc9be51c2ddce7478ef7b775fe7a6c3.tar.bz2 |
Fix compiler warning on Windows 64 bit: _init_pos_args() result type is
Py_ssize_t, not int
-rw-r--r-- | Modules/_ctypes/_ctypes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 1cf65b3..f47dbdf 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)) { |