]> granicus.if.org Git - python/commitdiff
Sigh. On Windows, (mode_t)i fails. Assume that there's a prototype
authorGuido van Rossum <guido@python.org>
Fri, 31 Mar 2000 01:26:23 +0000 (01:26 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 31 Mar 2000 01:26:23 +0000 (01:26 +0000)
in scope on systems where mode_t isn't the same size as int...

Modules/posixmodule.c

index 8458d583a8c374e3a59161af5d184425406276be..0ce2dfac94d42a45f91667433c477d974ff752a9 100644 (file)
@@ -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);