mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #13772: Use syntax for literal wchar_t character
This commit is contained in:
parent
31b3b92f7a
commit
072318b178
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue