diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-06-05 00:07:46 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-06-05 00:07:46 (GMT) |
commit | 072318b178f9824de5e0672218495f699dbdce44 (patch) | |
tree | d769694cd7ffe4d419b70f61b4c2cd95375dc322 | |
parent | 31b3b92f7af4adb44ef5ef21c329c383817d087e (diff) | |
download | cpython-072318b178f9824de5e0672218495f699dbdce44.zip cpython-072318b178f9824de5e0672218495f699dbdce44.tar.gz cpython-072318b178f9824de5e0672218495f699dbdce44.tar.bz2 |
Issue #13772: Use syntax for literal wchar_t character
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 13f4b1d..26b4e3d 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -6744,7 +6744,7 @@ _dirnameW(WCHAR *path) /* walk the path from the end until a backslash is encountered */ for(ptr = path + wcslen(path); ptr != path; ptr--) { - if (*ptr == *L"\\" || *ptr == *L"/") + if (*ptr == L'\\' || *ptr == L'/') break; } *ptr = 0; |