From 77d113518c7ae2f88f1c4fb3351b53b81c84db33 Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Fri, 31 Mar 2023 17:14:24 +0300 Subject: [PATCH] Fix pow_2_32 defintion --- pgxn/neon/file_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgxn/neon/file_cache.c b/pgxn/neon/file_cache.c index 426690e313..035b2c7d71 100644 --- a/pgxn/neon/file_cache.c +++ b/pgxn/neon/file_cache.c @@ -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++)