mirror of
https://github.com/python/cpython.git
synced 2025-09-19 07:00:59 +00:00
ncurses' winch and mvwinch return an unsigned long
This commit is contained in:
parent
13e6d23bb1
commit
abbc8ca708
1 changed files with 3 additions and 2 deletions
|
@ -1342,7 +1342,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:
|
||||||
|
@ -1357,7 +1358,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 *
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue