🐛 fix bug in test/calc.nas

This commit is contained in:
ValKmjolnir
2023-02-03 19:01:00 +08:00
parent 94f7e0a80a
commit e2e6a64bc7
6 changed files with 14 additions and 16 deletions
+1 -7
View File
@@ -115,13 +115,7 @@ struct opcode {
u32 line;// line of source code
opcode(u8 o=op_exit,u16 f=0,u32 n=0,u32 l=0):
op(o),fidx(f),num(n),line(l) {}
opcode& operator=(const opcode& tmp) {
op=tmp.op;
fidx=tmp.fidx;
num=tmp.num;
line=tmp.line;
return *this;
}
opcode& operator=(const opcode& tmp) = default;
};
class codestream {