Skip to content

Commit 77ae007

Browse files
add a prefix 'L' when comparing wchar_t
1 parent 6e6cbbd commit 77ae007

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/getopt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int _PyOS_GetOpt(Py_ssize_t argc, wchar_t * const *argv, int *longindex)
6262
wchar_t *ptr;
6363
wchar_t option;
6464

65-
if (*opt_ptr == '\0') {
65+
if (*opt_ptr == L'\0') {
6666

6767
if (_PyOS_optind >= argc)
6868
return -1;

0 commit comments

Comments
 (0)