diff --git a/src/main/java/org/apache/datasketches/tuple/adouble/DoubleSketch.java b/src/main/java/org/apache/datasketches/tuple/adouble/DoubleSketch.java index 8159886d9..92e2cbe98 100644 --- a/src/main/java/org/apache/datasketches/tuple/adouble/DoubleSketch.java +++ b/src/main/java/org/apache/datasketches/tuple/adouble/DoubleSketch.java @@ -35,7 +35,7 @@ public class DoubleSketch extends UpdatableSketch { * @param mode The DoubleSummary mode to be used */ public DoubleSketch(final int lgK, final DoubleSummary.Mode mode) { - this(1 << lgK, ResizeFactor.X8.ordinal(), 1.0F, mode); + this(lgK, ResizeFactor.X8.ordinal(), 1.0F, mode); } /** diff --git a/src/main/java/org/apache/datasketches/tuple/aninteger/IntegerSketch.java b/src/main/java/org/apache/datasketches/tuple/aninteger/IntegerSketch.java index 394cc341d..03ca7d093 100644 --- a/src/main/java/org/apache/datasketches/tuple/aninteger/IntegerSketch.java +++ b/src/main/java/org/apache/datasketches/tuple/aninteger/IntegerSketch.java @@ -35,7 +35,7 @@ public class IntegerSketch extends UpdatableSketch { * @param mode The IntegerSummary mode to be used */ public IntegerSketch(final int lgK, final IntegerSummary.Mode mode) { - this(1 << lgK, ResizeFactor.X8.ordinal(), 1.0F, mode); + this(lgK, ResizeFactor.X8.ordinal(), 1.0F, mode); } /**