Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 59bd34f

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)