[Python-checkins] cpython: Issue #13772: Fix a compiler warning on Windows

victor.stinner python-checkins at python.org
Wed Jun 5 01:59:31 CEST 2013


http://hg.python.org/cpython/rev/e024236ea253
changeset:   84036:e024236ea253
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Jun 05 01:30:25 2013 +0200
summary:
  Issue #13772: Fix a compiler warning on Windows

files:
  Modules/posixmodule.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -6772,7 +6772,7 @@
 
 }
 
-int _is_absA(char *path) {
+int _is_absA(const char *path) {
     /* Is this path absolute? */
 
     return path[0] == '\\' || path[0] == '/' || path[1] == ':';

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list