]> granicus.if.org Git - python/commitdiff
Swap two statements in the dedent check loop. This makes absolutely
authorGuido van Rossum <guido@python.org>
Mon, 16 Feb 1998 22:18:00 +0000 (22:18 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 16 Feb 1998 22:18:00 +0000 (22:18 +0000)
no difference, but avoids triggering an optimizer bug in the AIX
compiler where the loop unrolling does the wrong thing...

Parser/tokenizer.c

index ce397df45783fa24adf29b16708ef2ccd7c69877..21583acabc180d8e1026ee91b86c962f0821533a 100644 (file)
@@ -485,8 +485,8 @@ PyTokenizer_Get(tok, p_start, p_end)
                                /* Dedent -- any number, must be consistent */
                                while (tok->indent > 0 &&
                                        col < tok->indstack[tok->indent]) {
-                                       tok->indent--;
                                        tok->pendin--;
+                                       tok->indent--;
                                }
                                if (col != tok->indstack[tok->indent]) {
                                        fprintf(stderr,