From b66ebbef4bfecea8c4154b64b3ea0a05b2fee008 Mon Sep 17 00:00:00 2001 From: ValKmjolnir Date: Sun, 27 Mar 2022 13:10:35 +0800 Subject: [PATCH] fix bytecode output format bug --- nasal_codegen.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nasal_codegen.h b/nasal_codegen.h index 50c6174..3a9257b 100644 --- a/nasal_codegen.h +++ b/nasal_codegen.h @@ -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(); }