mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
core/asm: optimize code
This commit is contained in:
parent
0ceac8d00e
commit
1defd4684b
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ func (it *instructionIterator) Next() bool {
|
|||
if it.op.IsPush() {
|
||||
a := uint64(it.op) - uint64(vm.PUSH0)
|
||||
u := it.pc + 1 + a
|
||||
if uint64(len(it.code)) <= it.pc || uint64(len(it.code)) < u {
|
||||
if uint64(len(it.code)) < u {
|
||||
it.error = fmt.Errorf("incomplete push instruction at %v", it.pc)
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue