This is an automated email from the ASF dual-hosted git repository.

alsay pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datasketches-go.git

commit a0f1eb36a3fb8e606e3e9e14c0537fd6d7067614
Author: Pierre Lacave <[email protected]>
AuthorDate: Tue Dec 19 19:28:43 2023 +0100

    fix typo/bug when updating kxq0 in rebuild
---
 hll/union.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hll/union.go b/hll/union.go
index 1c2e7e3..bfe5766 100644
--- a/hll/union.go
+++ b/hll/union.go
@@ -307,7 +307,7 @@ func checkRebuildCurMinNumKxQ(sketch HllSketch) error {
                                if err != nil {
                                        return err
                                }
-                               kxq0 += inv - -1.0
+                               kxq0 += inv - 1.0
                        } else {
                                inv, err := common.InvPow2(v)
                                if err != nil {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to