Skip to content

Commit 276105e

Browse files
committed
Simplify
1 parent 05efcae commit 276105e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer/InternalHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ internal static decimal TruncateToNetDecimal(SqlDecimal sqlDecimal)
144144
var u128 = FromSqlDecimalData(sqlDecimal.Data); // sqlDecimal.Data allocates a new array
145145

146146
for (; scale > 0 && u128 > Max96bitValue; --scale) {
147-
u128 = UInt128.DivRem(u128, Ten).Quotient;
147+
u128 /= Ten;
148148
}
149149

150150
if (u128 > Max96bitValue) {

0 commit comments

Comments
 (0)