]> granicus.if.org Git - python/commitdiff
Issue #13772: Fix a compiler warning on Windows
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 4 Jun 2013 23:30:25 +0000 (01:30 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 4 Jun 2013 23:30:25 +0000 (01:30 +0200)
Modules/posixmodule.c

index 28e6f81b1289fc243a7edbfd93a5a15a0530b8c0..9b2f95be38fdf732799ed61d990f8bdd612504af 100644 (file)
@@ -6772,7 +6772,7 @@ int _is_absW(const WCHAR *path) {
 
 }
 
-int _is_absA(char *path) {
+int _is_absA(const char *path) {
     /* Is this path absolute? */
 
     return path[0] == '\\' || path[0] == '/' || path[1] == ':';