Skip to content

Commit

Permalink
core/vm: optimize analysis of PUSH32
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Dec 21, 2021
1 parent 4c15734 commit 6863d38
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/vm/analysis.go
Expand Up @@ -85,11 +85,11 @@ func codeBitmapInternal(code, bits bitvec) bitvec {
bits.set16(pc)
pc += 16
numbits -= 16
}
if numbits >= 16 {
bits.set16(pc)
pc += 16
numbits -= 16
if numbits == 16 {
bits.set16(pc)
pc += 16
numbits = 0
}
}
if numbits >= 8 {
bits.set8(pc)
Expand Down

0 comments on commit 6863d38

Please sign in to comment.