File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/library/yql_common/decimal Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ namespace NDecimal {
17
17
#endif
18
18
19
19
#ifdef DONT_USE_NATIVE_INT128
20
- using TInt128 = TWide<i64 >;
21
- using TUint128 = TWide<ui64 >;
20
+ using TInt128 = TWide<int64_t >;
21
+ using TUint128 = TWide<uint64_t >;
22
22
#else
23
23
using TInt128 = signed __int128;
24
24
using TUint128 = unsigned __int128;
@@ -313,10 +313,10 @@ class TDecimalRemainder {
313
313
314
314
TInt128 Do (TInt128 left, TRight right) const {
315
315
if constexpr (std::is_signed<TRight>::value) {
316
- if (right >= +Bound || right <= -Bound)
316
+ if (TInt128 ( right) >= +Bound || TInt128 ( right) <= -Bound)
317
317
return left;
318
318
} else {
319
- if (right >= Bound)
319
+ if (TInt128 ( right) >= Bound)
320
320
return left;
321
321
}
322
322
You can’t perform that action at this time.
0 commit comments