You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2016/04/30 01:05:45 UTC

kylin git commit: KYLIN-1624 fix on 1.3 branch

Repository: kylin
Updated Branches:
  refs/heads/1.3.x dff0c381c -> 59d83168e


KYLIN-1624 fix on 1.3 branch


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/59d83168
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/59d83168
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/59d83168

Branch: refs/heads/1.3.x
Commit: 59d83168e417499c8d43011c18442a26b2a1a1a1
Parents: dff0c38
Author: Yang Li <li...@apache.org>
Authored: Sat Apr 30 07:05:32 2016 +0800
Committer: Yang Li <li...@apache.org>
Committed: Sat Apr 30 07:05:32 2016 +0800

----------------------------------------------------------------------
 .../java/org/apache/kylin/common/hll/HyperLogLogPlusCounter.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/59d83168/common/src/main/java/org/apache/kylin/common/hll/HyperLogLogPlusCounter.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/kylin/common/hll/HyperLogLogPlusCounter.java b/common/src/main/java/org/apache/kylin/common/hll/HyperLogLogPlusCounter.java
index d37d6db..acd5764 100644
--- a/common/src/main/java/org/apache/kylin/common/hll/HyperLogLogPlusCounter.java
+++ b/common/src/main/java/org/apache/kylin/common/hll/HyperLogLogPlusCounter.java
@@ -148,7 +148,7 @@ public class HyperLogLogPlusCounter implements Serializable, Comparable<HyperLog
                     registerSum++;
                     zeroBuckets++;
                 } else {
-                    registerSum += 1.0 / (1 << registers[i]);
+                    registerSum += 1.0 / (1L << registers[i]);
                 }
             }
         }