Fix pow_2_32 defintion

This commit is contained in:
Konstantin Knizhnik
2023-03-31 17:14:24 +03:00
parent cb9ac4ccca
commit 77d113518c

View File

@@ -99,7 +99,7 @@ approximate_distinct_count(uint8* max_zero_bits)
{
const int m = N_HASHES;
const double alpha_m = 0.7213 / (1 + 1.079 / (double)m);
const double pow_2_32 = 0xffffffff;
const double pow_2_32 = 4294967296.0;
double E, c = 0;
int i;
for (i = 0; i < m; i++)