[Python-checkins] cpython (3.6): Issue #28333: Remove unnecessary increment.
steve.dower
python-checkins at python.org
Sat Oct 8 15:21:32 EDT 2016
https://hg.python.org/cpython/rev/63ceadf8410f
changeset: 104388:63ceadf8410f
branch: 3.6
parent: 104386:faf5493e6f61
user: Steve Dower <steve.dower at microsoft.com>
date: Sat Oct 08 12:20:45 2016 -0700
summary:
Issue #28333: Remove unnecessary increment.
files:
Parser/myreadline.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Parser/myreadline.c b/Parser/myreadline.c
--- a/Parser/myreadline.c
+++ b/Parser/myreadline.c
@@ -218,7 +218,7 @@
int wlen;
wlen = MultiByteToWideChar(CP_UTF8, 0, prompt, -1,
NULL, 0);
- if (wlen++ &&
+ if (wlen &&
(wbuf = PyMem_RawMalloc(wlen * sizeof(wchar_t)))) {
wlen = MultiByteToWideChar(CP_UTF8, 0, prompt, -1,
wbuf, wlen);
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list