diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 8458d58..0ce2dfa 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -698,7 +698,7 @@ posix_chmod(self, args) if (!PyArg_ParseTuple(args, "si", &path, &i)) return NULL; Py_BEGIN_ALLOW_THREADS - res = chmod(path, (mode_t)i); + res = chmod(path, i); Py_END_ALLOW_THREADS if (res < 0) return posix_error_with_filename(path); |