Skip to content

Commit

Permalink
[parser] Fix "uncategorized error" in nested array initializers.
Browse files Browse the repository at this point in the history
  • Loading branch information
c-lipka committed Jan 29, 2019
1 parent c79d348 commit 1fa6d36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/parser/parser_tokenizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2302,7 +2302,7 @@ Parser::POV_ARRAY *Parser::Parse_Array_Declare (void)
i=0;
j=1;

POV_EXPERIMENTAL_ASSERT(IsOkToDeclare());
bool oldOkToDeclare = IsOkToDeclare();
SetOkToDeclare(false);

while (Parse_Square_Begin(false))
Expand Down Expand Up @@ -2363,7 +2363,7 @@ Parser::POV_ARRAY *Parser::Parse_Array_Declare (void)
END_CASE
END_EXPECT

SetOkToDeclare(true);
SetOkToDeclare(oldOkToDeclare);
return(New);
};

Expand Down

0 comments on commit 1fa6d36

Please sign in to comment.