tighten loop

This commit is contained in:
Benjamin Peterson 2010-10-24 03:41:46 +00:00
parent 503d6c5ae9
commit d4519c14ca
1 changed files with 1 additions and 4 deletions

View File

@ -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);
}