[Python-checkins] cpython: Fix compiler warning on Windows 64 bit: _init_pos_args() result type is
victor.stinner
python-checkins at python.org
Sat Nov 16 00:34:18 CET 2013
http://hg.python.org/cpython/rev/309d855ebc3e
changeset: 87133:309d855ebc3e
user: Victor Stinner <victor.stinner at gmail.com>
date: Sat Nov 16 00:17:22 2013 +0100
summary:
Fix compiler warning on Windows 64 bit: _init_pos_args() result type is
Py_ssize_t, not int
files:
Modules/_ctypes/_ctypes.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -4054,8 +4054,8 @@
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)) {
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list