Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 54758fa

Browse files
committed
Swap two statements in the dedent check loop. This makes absolutely
no difference, but avoids triggering an optimizer bug in the AIX compiler where the loop unrolling does the wrong thing...
1 parent fac431e commit 54758fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Parser/tokenizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,8 @@ PyTokenizer_Get(tok, p_start, p_end)
485485
/* Dedent -- any number, must be consistent */
486486
while (tok->indent > 0 &&
487487
col < tok->indstack[tok->indent]) {
488-
tok->indent--;
489488
tok->pendin--;
489+
tok->indent--;
490490
}
491491
if (col != tok->indstack[tok->indent]) {
492492
fprintf(stderr,

0 commit comments

Comments
 (0)