]> granicus.if.org Git - python/commitdiff
tighten loop
authorBenjamin Peterson <benjamin@python.org>
Sun, 24 Oct 2010 03:41:46 +0000 (03:41 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 24 Oct 2010 03:41:46 +0000 (03:41 +0000)
Python/pythonrun.c

index cf8f7bf2a7670dd30ff4d67f77a7a6e9124be028..1b0a84bd6572a8300eefba55d562f9842bf4a8f1 100644 (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);
 }