From 1fa6d36054863b4920b487235d9e76be473aa26c Mon Sep 17 00:00:00 2001 From: Christoph Lipka Date: Tue, 29 Jan 2019 23:37:16 +0100 Subject: [PATCH] [parser] Fix "uncategorized error" in nested array initializers. --- source/parser/parser_tokenizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/parser/parser_tokenizer.cpp b/source/parser/parser_tokenizer.cpp index 06f17366b..49cb6a218 100644 --- a/source/parser/parser_tokenizer.cpp +++ b/source/parser/parser_tokenizer.cpp @@ -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)) @@ -2363,7 +2363,7 @@ Parser::POV_ARRAY *Parser::Parse_Array_Declare (void) END_CASE END_EXPECT - SetOkToDeclare(true); + SetOkToDeclare(oldOkToDeclare); return(New); };