SF but #417587: compiler warnings compiling 2.1.

Repaired *some* of the SGI compiler warnings Sjoerd Mullender reported.
This commit is contained in:
Tim Peters 2001-04-21 02:46:11 +00:00
parent 9dfe4cdfa4
commit cf96de052f
4 changed files with 1 additions and 8 deletions

View file

@ -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);