@@ -487,7 +487,7 @@ _Py_Uid_Converter(PyObject *obj, void *p)
487
487
* but this value would get interpreted as (uid_t)-1 by chown
488
488
* and its siblings. That's not what the user meant! So we
489
489
* throw an overflow exception instead. (We already
490
- * handled a real -1 with PyLong_AsLongAndOverflow() above.)
490
+ * handled a real -1 with PyLong_AsLongAndOverflow() above.)
491
491
*/
492
492
if (uid == (uid_t )- 1 )
493
493
goto overflow ;
@@ -594,7 +594,7 @@ _Py_Gid_Converter(PyObject *obj, void *p)
594
594
* but this value would get interpreted as (gid_t)-1 by chown
595
595
* and its siblings. That's not what the user meant! So we
596
596
* throw an overflow exception instead. (We already
597
- * handled a real -1 with PyLong_AsLongAndOverflow() above.)
597
+ * handled a real -1 with PyLong_AsLongAndOverflow() above.)
598
598
*/
599
599
if (gid == (gid_t )- 1 )
600
600
goto overflow ;
@@ -2666,7 +2666,7 @@ os_access_impl(PyObject *self, path_t *path, int mode, int dir_fd, int effective
2666
2666
* (Directories cannot be read-only on Windows.)
2667
2667
*/
2668
2668
return_value = PyBool_FromLong (
2669
- (attr != 0xFFFFFFFF ) &&
2669
+ (attr != INVALID_FILE_ATTRIBUTES ) &&
2670
2670
(!(mode & 2 ) ||
2671
2671
!(attr & FILE_ATTRIBUTE_READONLY ) ||
2672
2672
(attr & FILE_ATTRIBUTE_DIRECTORY )));
@@ -2938,7 +2938,7 @@ posix_chmod(PyObject *self, PyObject *args, PyObject *kwargs)
2938
2938
attr = GetFileAttributesW (path .wide );
2939
2939
else
2940
2940
attr = GetFileAttributesA (path .narrow );
2941
- if (attr == 0xFFFFFFFF )
2941
+ if (attr == INVALID_FILE_ATTRIBUTES )
2942
2942
result = 0 ;
2943
2943
else {
2944
2944
if (mode & _S_IWRITE )
@@ -7795,7 +7795,7 @@ posix_dup(PyObject *self, PyObject *args)
7795
7795
7796
7796
if (!PyArg_ParseTuple (args , "i:dup" , & fd ))
7797
7797
return NULL ;
7798
-
7798
+
7799
7799
fd = _Py_dup (fd );
7800
7800
if (fd == -1 )
7801
7801
return NULL ;
0 commit comments