Skip to content

Commit 64358ff

Browse files
committed
Fix IntegerSketch & DoubleSketch Ctrs.
1 parent 51f985d commit 64358ff

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/apache/datasketches/tuple/adouble/DoubleSketch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class DoubleSketch extends UpdatableSketch<Double, DoubleSummary> {
3535
* @param mode The DoubleSummary mode to be used
3636
*/
3737
public DoubleSketch(final int lgK, final DoubleSummary.Mode mode) {
38-
this(1 << lgK, ResizeFactor.X8.ordinal(), 1.0F, mode);
38+
this(lgK, ResizeFactor.X8.ordinal(), 1.0F, mode);
3939
}
4040

4141
/**

src/main/java/org/apache/datasketches/tuple/aninteger/IntegerSketch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class IntegerSketch extends UpdatableSketch<Integer, IntegerSummary> {
3535
* @param mode The IntegerSummary mode to be used
3636
*/
3737
public IntegerSketch(final int lgK, final IntegerSummary.Mode mode) {
38-
this(1 << lgK, ResizeFactor.X8.ordinal(), 1.0F, mode);
38+
this(lgK, ResizeFactor.X8.ordinal(), 1.0F, mode);
3939
}
4040

4141
/**

0 commit comments

Comments
 (0)