leerho commented on code in PR #677: URL: https://github.com/apache/datasketches-java/pull/677#discussion_r2238455786
########## src/main/java/org/apache/datasketches/count/CountMinSketch.java: ########## @@ -184,7 +180,7 @@ public long getTotalWeight_() { * @return The relative error. */ public double getRelativeError() { - return Math.exp(1.0) / (double)numBuckets_; + return Math.exp(1.0) / numBuckets_; Review Comment: Java numeric promotion rules will automatically promote an int to a double in this case. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@datasketches.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@datasketches.apache.org For additional commands, e-mail: dev-h...@datasketches.apache.org