Skip to content

Commit

Permalink
core/vm: handle 2nd numbits >= 16 under the 1st one
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Dec 15, 2021
1 parent d32bc09 commit 8f06e53
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/vm/analysis.go
Expand Up @@ -91,11 +91,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 -= 16
}
}
if numbits >= 8 {
bits.set8(pc)
Expand Down

0 comments on commit 8f06e53

Please sign in to comment.