Skip to content

Commit

Permalink
fix: get section data repeatedly (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglei-coder authored Jul 25, 2022
1 parent c377082 commit 12cb558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion section.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ func (section *Section) CalculateEntropy(pe *File) float64 {
}

var frequencies [256]uint64
for _, v := range section.Data(0, 0, pe) {
for _, v := range sectionData {
frequencies[v]++
}

Expand Down

0 comments on commit 12cb558

Please sign in to comment.