Skip to content

Commit edd54e1

Browse files
authored
Merge pull request #250 from ibat10clw/fix-magic-number
Fix magic number in bucket declaration
2 parents 92ef5c6 + a9e6d9f commit edd54e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shannon_entropy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ double shannon_entropy(const uint8_t *s)
1515
uint64_t entropy_sum = 0;
1616
const uint64_t entropy_max = 8 * LOG2_RET_SHIFT;
1717

18-
uint32_t bucket[256];
18+
uint32_t bucket[BUCKET_SIZE];
1919
memset(&bucket, 0, sizeof(bucket));
2020

2121
for (uint32_t i = 0; i < count; i++)

0 commit comments

Comments
 (0)