Skip to content

Commit

Permalink
Decimal: win32 compile fix (ydb-platform#9290)
Browse files Browse the repository at this point in the history
  • Loading branch information
resetius authored Sep 16, 2024
1 parent f22b150 commit c0490d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ydb/library/yql/public/decimal/yql_decimal.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,10 @@ class TDecimalRemainder {

TInt128 Do(TInt128 left, TRight right) const {
if constexpr (std::is_signed<TRight>::value) {
if (right >= +Bound || right <= -Bound)
if (TInt128(right) >= +Bound || TInt128(right) <= -Bound)
return left;
} else {
if (right >= Bound)
if (TInt128(right) >= Bound)
return left;
}

Expand Down

0 comments on commit c0490d8

Please sign in to comment.