Skip to content

Commit 59bd34f

Browse files
committed
Issue python#28333: Remove unnecessary increment.
1 parent 3cd187b commit 59bd34f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parser/myreadline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ PyOS_StdioReadline(FILE *sys_stdin, FILE *sys_stdout, const char *prompt)
218218
int wlen;
219219
wlen = MultiByteToWideChar(CP_UTF8, 0, prompt, -1,
220220
NULL, 0);
221-
if (wlen++ &&
221+
if (wlen &&
222222
(wbuf = PyMem_RawMalloc(wlen * sizeof(wchar_t)))) {
223223
wlen = MultiByteToWideChar(CP_UTF8, 0, prompt, -1,
224224
wbuf, wlen);

0 commit comments

Comments
 (0)