Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 6311748

Browse files
committed
Run clang-format
1 parent cbfa075 commit 6311748

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/include/common/types/decimal_t.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ struct KUZU_API decimal_t {
1212
uint32_t scale = 3;
1313

1414
decimal_t() {}
15-
decimal_t(int128_t val, uint32_t prec, uint32_t scale):
16-
val(val), precision(prec), scale(scale) {}
15+
decimal_t(int128_t val, uint32_t prec, uint32_t scale)
16+
: val(val), precision(prec), scale(scale) {}
1717
};
1818

19-
}
20-
}
19+
} // namespace common
20+
} // namespace kuzu

src/parser/transform/transform_expression.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,7 @@ std::unique_ptr<ParsedExpression> Transformer::transformDoubleLiteral(
646646
if (type.getLogicalTypeID() == LogicalTypeID::DECIMAL) {
647647
int128_t val;
648648
decimalCast(text.c_str(), text.length(), val, type);
649-
decimal_t result(val, DecimalType::getPrecision(type),
650-
DecimalType::getScale(type));
649+
decimal_t result(val, DecimalType::getPrecision(type), DecimalType::getScale(type));
651650
return std::make_unique<ParsedLiteralExpression>(Value(result), ctx.getText());
652651
} else {
653652
ku_string_t literal{text.c_str(), text.length()};

0 commit comments

Comments
 (0)