Kaydet (Commit) 47f02e5e authored tarafından Christian Heimes's avatar Christian Heimes

ncurses' winch and mvwinch return an unsigned long

...@@ -1414,7 +1414,8 @@ PyCursesWindow_InsCh(PyCursesWindowObject *self, PyObject *args) ...@@ -1414,7 +1414,8 @@ PyCursesWindow_InsCh(PyCursesWindowObject *self, PyObject *args)
static PyObject * static PyObject *
PyCursesWindow_InCh(PyCursesWindowObject *self, PyObject *args) PyCursesWindow_InCh(PyCursesWindowObject *self, PyObject *args)
{ {
int x, y, rtn; int x, y;
unsigned long rtn;
switch (PyTuple_Size(args)) { switch (PyTuple_Size(args)) {
case 0: case 0:
...@@ -1429,7 +1430,7 @@ PyCursesWindow_InCh(PyCursesWindowObject *self, PyObject *args) ...@@ -1429,7 +1430,7 @@ PyCursesWindow_InCh(PyCursesWindowObject *self, PyObject *args)
PyErr_SetString(PyExc_TypeError, "inch requires 0 or 2 arguments"); PyErr_SetString(PyExc_TypeError, "inch requires 0 or 2 arguments");
return NULL; return NULL;
} }
return PyLong_FromLong((long) rtn); return PyLong_FromUnsignedLong(rtn);
} }
static PyObject * static PyObject *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment