mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-22 10:58:47 +08:00
fix bytecode output format bug
This commit is contained in:
+3
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user