From e0f47decc7697aa27cc419f22f18cd378b762f7c Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 28 Jan 2020 15:48:01 +0300 Subject: [PATCH] compiler: replace ROLL(2) with equivalent ROT --- pkg/compiler/codegen.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/compiler/codegen.go b/pkg/compiler/codegen.go index a8973da3b..0be404597 100644 --- a/pkg/compiler/codegen.go +++ b/pkg/compiler/codegen.go @@ -114,8 +114,7 @@ func (c *codegen) emitStoreLocal(pos int) { } emitInt(c.prog.BinWriter, int64(pos)) - emitInt(c.prog.BinWriter, 2) - emitOpcode(c.prog.BinWriter, opcode.ROLL) + emitOpcode(c.prog.BinWriter, opcode.ROT) emitOpcode(c.prog.BinWriter, opcode.SETITEM) }