Skip to content

Commit

Permalink
core/vm: use uint64
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Dec 15, 2021
1 parent df65556 commit bc67131
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/vm/analysis.go
Expand Up @@ -85,7 +85,7 @@ func codeBitmapInternal(code, bits bitvec) bitvec {
if int8(op) < int8(PUSH1) { // If not PUSH (the int8(op) > int(PUSH32) is always false).
continue
}
numbits := op - PUSH1 + 1
numbits := uint64(op - PUSH1 + 1)
if numbits >= 8 {
if numbits >= 16 {
bits.set16(pc)
Expand Down Expand Up @@ -119,7 +119,7 @@ func codeBitmapInternal(code, bits bitvec) bitvec {
case 7:
bits.setN(set7BitsMask, pc)
}
pc += uint64(numbits)
pc += numbits
}
return bits
}

0 comments on commit bc67131

Please sign in to comment.