ncurses' winch and mvwinch return an unsigned long

This commit is contained in:
Christian Heimes 2013-12-04 08:50:32 +01:00
commit 47f02e5e17
1 changed files with 3 additions and 2 deletions

View File

@ -1414,7 +1414,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:
@ -1429,7 +1430,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 *