aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-22 23:57:33 +0800
committerobscuren <geffobscura@gmail.com>2014-08-22 23:57:33 +0800
commitd9d4f63cd4e3c9388ea8425e9d41f63af030c77c (patch)
tree83e332246397670e3b0994cde800e94a72038909
parent56103f07517fe32522e510213c02ea982dfcef42 (diff)
downloadgo-tangerine-d9d4f63cd4e3c9388ea8425e9d41f63af030c77c.tar
go-tangerine-d9d4f63cd4e3c9388ea8425e9d41f63af030c77c.tar.gz
go-tangerine-d9d4f63cd4e3c9388ea8425e9d41f63af030c77c.tar.bz2
go-tangerine-d9d4f63cd4e3c9388ea8425e9d41f63af030c77c.tar.lz
go-tangerine-d9d4f63cd4e3c9388ea8425e9d41f63af030c77c.tar.xz
go-tangerine-d9d4f63cd4e3c9388ea8425e9d41f63af030c77c.tar.zst
go-tangerine-d9d4f63cd4e3c9388ea8425e9d41f63af030c77c.zip
Don't add ...
-rw-r--r--ethvm/vm.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ethvm/vm.go b/ethvm/vm.go
index 873a80c44..347ebcfe6 100644
--- a/ethvm/vm.go
+++ b/ethvm/vm.go
@@ -631,12 +631,12 @@ func (self *Vm) RunClosure(closure *Closure) (ret []byte, err error) {
require(1)
stack.Pop()
case DUP1, DUP2, DUP3, DUP4, DUP5, DUP6, DUP7, DUP8, DUP9, DUP10, DUP11, DUP12, DUP13, DUP14, DUP15, DUP16:
- n := int(op - DUP1 + 1)
+ n := int(op - DUP1)
stack.Dupn(n)
self.Printf(" => [%d] 0x%x", n, stack.Peek().Bytes())
case SWAP1, SWAP2, SWAP3, SWAP4, SWAP5, SWAP6, SWAP7, SWAP8, SWAP9, SWAP10, SWAP11, SWAP12, SWAP13, SWAP14, SWAP15, SWAP16:
- n := int(op - SWAP1 + 1)
+ n := int(op - SWAP1)
x, y := stack.Swapn(n)
self.Printf(" => [%d] %x [0] %x", n, x.Bytes(), y.Bytes())