Skip to content

Commit 6f929a0

Browse files
authored
core/asm: minor code-clarification (#29293)
1 parent 4c1b578 commit 6f929a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/asm/asm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (it *instructionIterator) Next() bool {
6666

6767
it.op = vm.OpCode(it.code[it.pc])
6868
if it.op.IsPush() {
69-
a := uint64(it.op) - uint64(vm.PUSH1) + 1
69+
a := uint64(it.op) - uint64(vm.PUSH0)
7070
u := it.pc + 1 + a
7171
if uint64(len(it.code)) <= it.pc || uint64(len(it.code)) < u {
7272
it.error = fmt.Errorf("incomplete push instruction at %v", it.pc)

0 commit comments

Comments
 (0)