From ad705b127d8de3a36b3d726cb16b0dac63f47e47 Mon Sep 17 00:00:00 2001 From: wangqingshuai Date: Mon, 25 Dec 2023 22:21:34 +0800 Subject: [PATCH] [refactor] avoid long to double --- src/main/java/ecnu/db/schema/Column.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ecnu/db/schema/Column.java b/src/main/java/ecnu/db/schema/Column.java index 756844a7..3279e471 100644 --- a/src/main/java/ecnu/db/schema/Column.java +++ b/src/main/java/ecnu/db/schema/Column.java @@ -167,7 +167,7 @@ public double[] calculate() { switch (columnType) { case DATE, DATETIME -> { for (int i = 0; i < columnData.length; i++) { - ret[i] = columnData[i] + min; + ret[i] = (columnData[i] + min); } } case DECIMAL -> {