We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c1b578 commit 6f929a0Copy full SHA for 6f929a0
core/asm/asm.go
@@ -66,7 +66,7 @@ func (it *instructionIterator) Next() bool {
66
67
it.op = vm.OpCode(it.code[it.pc])
68
if it.op.IsPush() {
69
- a := uint64(it.op) - uint64(vm.PUSH1) + 1
+ a := uint64(it.op) - uint64(vm.PUSH0)
70
u := it.pc + 1 + a
71
if uint64(len(it.code)) <= it.pc || uint64(len(it.code)) < u {
72
it.error = fmt.Errorf("incomplete push instruction at %v", it.pc)
0 commit comments