[Python-checkins] cpython (3.3): ncurses' winch and mvwinch return an unsigned long
christian.heimes
python-checkins at python.org
Wed Dec 4 08:50:43 CET 2013
http://hg.python.org/cpython/rev/f39a989f5b1a
changeset: 87756:f39a989f5b1a
branch: 3.3
parent: 87752:017d7c27a4f6
user: Christian Heimes <christian at cheimes.de>
date: Wed Dec 04 08:50:22 2013 +0100
summary:
ncurses' winch and mvwinch return an unsigned long
files:
Modules/_cursesmodule.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -1342,7 +1342,8 @@
static PyObject *
PyCursesWindow_InCh(PyCursesWindowObject *self, PyObject *args)
{
- int x, y, rtn;
+ int x, y;
+ unsigned long rtn;
switch (PyTuple_Size(args)) {
case 0:
@@ -1357,7 +1358,7 @@
PyErr_SetString(PyExc_TypeError, "inch requires 0 or 2 arguments");
return NULL;
}
- return PyLong_FromLong((long) rtn);
+ return PyLong_FromUnsignedLong(rtn);
}
static PyObject *
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list