mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
SF but #417587: compiler warnings compiling 2.1.
Repaired *some* of the SGI compiler warnings Sjoerd Mullender reported.
This commit is contained in:
parent
9dfe4cdfa4
commit
cf96de052f
4 changed files with 1 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue