summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-06-05 00:07:46 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-06-05 00:07:46 (GMT)
commit072318b178f9824de5e0672218495f699dbdce44 (patch)
treed769694cd7ffe4d419b70f61b4c2cd95375dc322
parent31b3b92f7af4adb44ef5ef21c329c383817d087e (diff)
downloadcpython-072318b178f9824de5e0672218495f699dbdce44.zip
cpython-072318b178f9824de5e0672218495f699dbdce44.tar.gz
cpython-072318b178f9824de5e0672218495f699dbdce44.tar.bz2
Issue #13772: Use syntax for literal wchar_t character
-rw-r--r--Modules/posixmodule.c2
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;