Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
danil-lashin committed Sep 19, 2018
1 parent 29498f7 commit f842259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/state/bitarray.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ func (bA *BitArray) UnmarshalJSON(bz []byte) error {
bits := match[1]

// Construct new BitArray and copy over.
numBits := uint(len(bits))
numBits := len(bits)
bA2 := NewBitArray(numBits)
for i := uint(0); i < numBits; i++ {
for i := 0; i < numBits; i++ {
if bits[i] == 'x' {
bA2.SetIndex(i, true)
}
Expand Down

0 comments on commit f842259

Please sign in to comment.