summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-04-21 02:46:11 +0000
committerTim Peters <tim.peters@gmail.com>2001-04-21 02:46:11 +0000
commitcf96de052f656c400ecfd8302d6507e4f586c365 (patch)
tree23d807a64949fa6c8035917a4e74b58b760b0709 /Modules
parent9dfe4cdfa46caa3087c6c383ffa307437f4536b4 (diff)
downloadcpython-git-cf96de052f656c400ecfd8302d6507e4f586c365.tar.gz
SF but #417587: compiler warnings compiling 2.1.
Repaired *some* of the SGI compiler warnings Sjoerd Mullender reported.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/mmapmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index c1cc013ed2..c48278f6c5 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -818,7 +818,7 @@ new_mmap_object(PyObject *self, PyObject *args, PyObject *kwdict)
m_obj->data = mmap(NULL, map_size,
prot, flags,
fd, 0);
- if (m_obj->data == (void *)-1)
+ if (m_obj->data == (char *)-1)
{
Py_DECREF(m_obj);
PyErr_SetFromErrno(mmap_module_error);