summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-03-31 01:26:23 (GMT)
committerGuido van Rossum <guido@python.org>2000-03-31 01:26:23 (GMT)
commitef40e77ac5cb16dd5cfa816f6dd81d155217acd0 (patch)
tree1439ba7515f1c2d139e80d75b0a2754ec49e8bfc
parent387b1011a161bee651323556b0d7312f3b15324a (diff)
downloadcpython-ef40e77ac5cb16dd5cfa816f6dd81d155217acd0.zip
cpython-ef40e77ac5cb16dd5cfa816f6dd81d155217acd0.tar.gz
cpython-ef40e77ac5cb16dd5cfa816f6dd81d155217acd0.tar.bz2
Sigh. On Windows, (mode_t)i fails. Assume that there's a prototype
in scope on systems where mode_t isn't the same size as int...
-rw-r--r--Modules/posixmodule.c2
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);