diff options
author | Christian Heimes <christian@cheimes.de> | 2013-12-04 07:50:22 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-12-04 07:50:22 (GMT) |
commit | abbc8ca70809ae4a9cae22cd7ec2da519b961b97 (patch) | |
tree | 050fc89380c21ddccee52bb289cf38a0e6db8d77 /Modules | |
parent | 13e6d23bb13d481caa9e9491b85062b643668d22 (diff) | |
download | cpython-abbc8ca70809ae4a9cae22cd7ec2da519b961b97.zip cpython-abbc8ca70809ae4a9cae22cd7ec2da519b961b97.tar.gz cpython-abbc8ca70809ae4a9cae22cd7ec2da519b961b97.tar.bz2 |
ncurses' winch and mvwinch return an unsigned long
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_cursesmodule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index f5df80c..13cfcf5 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -1342,7 +1342,8 @@ PyCursesWindow_InsCh(PyCursesWindowObject *self, PyObject *args) 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 @@ PyCursesWindow_InCh(PyCursesWindowObject *self, PyObject *args) PyErr_SetString(PyExc_TypeError, "inch requires 0 or 2 arguments"); return NULL; } - return PyLong_FromLong((long) rtn); + return PyLong_FromUnsignedLong(rtn); } static PyObject * |