Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 11112d1

Browse files
committed
Fix wrong return type in Decimal::CompareGtImpl
1 parent a1fdf33 commit 11112d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen/type/decimal_type.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ struct CompareDecimal : public TypeSystem::SimpleComparisonHandleNull {
128128
Value CompareGtImpl(CodeGen &codegen, const Value &left,
129129
const Value &right) const override {
130130
auto *raw_val = codegen->CreateFCmpUGT(left.GetValue(), right.GetValue());
131-
return Value{Decimal::Instance(), raw_val, nullptr, nullptr};
131+
return Value{Boolean::Instance(), raw_val, nullptr, nullptr};
132132
}
133133

134134
Value CompareGteImpl(CodeGen &codegen, const Value &left,

0 commit comments

Comments
 (0)