diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-10-24 03:41:46 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-10-24 03:41:46 (GMT) |
commit | d4519c14ca5f08247207616ccab4b652abf584c1 (patch) | |
tree | 5ca3e8b5942fc78a241c8b19f7243bf9c31fea98 /Python | |
parent | 503d6c5ae90c4427b236cff8b4f12051a8e72129 (diff) | |
download | cpython-d4519c14ca5f08247207616ccab4b652abf584c1.zip cpython-d4519c14ca5f08247207616ccab4b652abf584c1.tar.gz cpython-d4519c14ca5f08247207616ccab4b652abf584c1.tar.bz2 |
tighten loop
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pythonrun.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index cf8f7bf..1b0a84b 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1363,11 +1363,8 @@ print_error_text(PyObject *f, int offset, const char *text) if (offset == -1) return; PyFile_WriteString(" ", f); - offset--; - while (offset > 0) { + while (--offset) PyFile_WriteString(" ", f); - offset--; - } PyFile_WriteString("^\n", f); } |