Skip to content

Commit

Permalink
Fix bug introduced by extracting method.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeb01 committed May 19, 2019
1 parent a625b51 commit e040939
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hdr_histogram.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static int32_t count_leading_zeros_64(int64_t value)
_BitScanReverse(&leading_zero, low);
}
#endif
return 64 - (63 - leading_zero); /* smallest power of 2 containing value */
return 63 - leading_zero; /* smallest power of 2 containing value */
#else
return __builtin_clzll(value); /* smallest power of 2 containing value */
#endif
Expand Down

0 comments on commit e040939

Please sign in to comment.