summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/mmapmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index 1cd7d1709c..b01f42f034 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -877,10 +877,10 @@ new_mmap_object(PyObject *self, PyObject *args, PyObject *kwdict)
return NULL;
if ((access != (int)ACCESS_DEFAULT) &&
- ((flags != MAP_SHARED) || ( prot != (PROT_WRITE | PROT_READ))))
+ ((flags != MAP_SHARED) || (prot != (PROT_WRITE | PROT_READ))))
return PyErr_Format(PyExc_ValueError,
"mmap can't specify both access and flags, prot.");
- switch((access_mode)access) {
+ switch ((access_mode)access) {
case ACCESS_READ:
flags = MAP_SHARED;
prot = PROT_READ;