diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-06-04 22:35:54 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-06-04 22:35:54 (GMT) |
commit | e7e7eba1088ce27c14d27d4c7dc81e417dce3641 (patch) | |
tree | 9f68279464769011ed66b2b125ab6e3407ca2841 | |
parent | 8bda465caea1198d31bcce09f3d36007ff1f9fd2 (diff) | |
download | cpython-e7e7eba1088ce27c14d27d4c7dc81e417dce3641.zip cpython-e7e7eba1088ce27c14d27d4c7dc81e417dce3641.tar.gz cpython-e7e7eba1088ce27c14d27d4c7dc81e417dce3641.tar.bz2 |
Issue #13772: Fix compiler warnings on Windows
-rw-r--r-- | Modules/posixmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 17a9611..cb89d5e 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -6765,7 +6765,7 @@ void _dirnameA(char *path) { *ptr = 0; } -int _is_absW(WCHAR *path) { +int _is_absW(const WCHAR *path) { /* Is this path absolute? */ return path[0] == L'\\' || path[0] == L'/' || path[1] == L':'; @@ -6781,7 +6781,7 @@ int _is_absA(char *path) { void _joinW(WCHAR *dest_path, const WCHAR *root, const WCHAR *rest) { /* join root and rest with a backslash */ - int root_len; + size_t root_len; if(_is_absW(rest)) { wcscpy(dest_path, rest); @@ -6800,7 +6800,7 @@ void _joinW(WCHAR *dest_path, const WCHAR *root, const WCHAR *rest) { void _joinA(char *dest_path, const char *root, const char *rest) { /* join root and rest with a backslash */ - int root_len; + size_t root_len; if(_is_absA(rest)) { strcpy(dest_path, rest); |