core/asm: minor code-clarification (#29293)

pull/29295/head
zgfzgf 8 months ago committed by GitHub
parent 4c1b57856f
commit 6f929a0762
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      core/asm/asm.go

@ -66,7 +66,7 @@ func (it *instructionIterator) Next() bool {
it.op = vm.OpCode(it.code[it.pc])
if it.op.IsPush() {
a := uint64(it.op) - uint64(vm.PUSH1) + 1
a := uint64(it.op) - uint64(vm.PUSH0)
u := it.pc + 1 + a
if uint64(len(it.code)) <= it.pc || uint64(len(it.code)) < u {
it.error = fmt.Errorf("incomplete push instruction at %v", it.pc)

Loading…
Cancel
Save