fix bytecode output format bug

This commit is contained in:
ValKmjolnir 2022-03-27 13:10:35 +08:00
parent 7f22b25909
commit b66ebbef4b
1 changed files with 3 additions and 1 deletions

View File

@ -1145,7 +1145,9 @@ void nasal_codegen::print_op(uint32_t index)
const opcode& c=code[index];
if(!festk.empty() && index==festk.top())
{
printf("<0x%x>;\n\n",fbstk.top());
printf("<0x%x>;\n",fbstk.top());
if(code[index].op!=op_newf) // avoid two empty lines
printf("\n");
fbstk.pop();
festk.pop();
}