Skip to content
Snippets Groups Projects
Verified Commit c329b4ff authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Bytecode: fix bug in print_bytecode_{static,dynamic}_model commands

The FENDEQU tag was not properly handled when printing.
parent d584317a
No related branches found
No related tags found
No related merge requests found
......@@ -968,9 +968,9 @@ Evaluate::print_expression(const Evaluate::it_code_type &expr_begin, const optio
go_on = false;
break;
case Tags::FENDBLOCK:
throw FatalException{"Can't print FENDBLOCK"};
case Tags::FENDEQU:
go_on = false;
break;
throw FatalException{"Can't print FENDEQU"};
default:
throw FatalException{"In print_expression, unknown opcode "
+ to_string(static_cast<int>((*it_code)->op_code))};
......@@ -2242,6 +2242,8 @@ Evaluate::printCurrentBlock()
{
if ((*it_code)->op_code == Tags::FENDBLOCK)
go_on = false;
else if ((*it_code)->op_code == Tags::FENDEQU)
it_code++;
else
{
string s;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment