summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorXiang Zhang <angwerzx@126.com>2018-06-23 04:29:30 (GMT)
committerGitHub <noreply@github.com>2018-06-23 04:29:30 (GMT)
commit44742e94c809d580fa406f9d21b86e1d4e1938a5 (patch)
tree71726bce5504e1c6a8c887c4ade45e156352d3d1 /Modules
parentc9d43c702a53804c23ecb22a0dbf6a47c804d2b1 (diff)
downloadcpython-44742e94c809d580fa406f9d21b86e1d4e1938a5.zip
cpython-44742e94c809d580fa406f9d21b86e1d4e1938a5.tar.gz
cpython-44742e94c809d580fa406f9d21b86e1d4e1938a5.tar.bz2
suppress compiler warnings in _cursesmodule.c (#7860)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_cursesmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c
index fe4c9d1..a728a24 100644
--- a/Modules/_cursesmodule.c
+++ b/Modules/_cursesmodule.c
@@ -4001,7 +4001,7 @@ _curses_tigetflag_impl(PyObject *module, const char *capname)
{
PyCursesSetupTermCalled;
- return PyLong_FromLong( (long) tigetflag( capname ) );
+ return PyLong_FromLong( (long) tigetflag( (char *)capname ) );
}
/*[clinic input]
@@ -4023,7 +4023,7 @@ _curses_tigetnum_impl(PyObject *module, const char *capname)
{
PyCursesSetupTermCalled;
- return PyLong_FromLong( (long) tigetnum( capname ) );
+ return PyLong_FromLong( (long) tigetnum( (char *)capname ) );
}
/*[clinic input]
@@ -4045,7 +4045,7 @@ _curses_tigetstr_impl(PyObject *module, const char *capname)
{
PyCursesSetupTermCalled;
- capname = tigetstr( capname );
+ capname = tigetstr( (char *)capname );
if (capname == NULL || capname == (char*) -1) {
Py_RETURN_NONE;
}
@@ -4080,7 +4080,7 @@ _curses_tparm_impl(PyObject *module, const char *str, int i1, int i2, int i3,
PyCursesSetupTermCalled;
- result = tparm(str,i1,i2,i3,i4,i5,i6,i7,i8,i9);
+ result = tparm((char *)str,i1,i2,i3,i4,i5,i6,i7,i8,i9);
if (!result) {
PyErr_SetString(PyCursesError, "tparm() returned NULL");
return NULL;