Skip to content

Commit 4f9b37c

Browse files
committed
Move rounding step location
1 parent 4404b70 commit 4f9b37c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/boost/decimal/detail/add_impl.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,11 @@ BOOST_DECIMAL_FORCE_INLINE constexpr auto add_impl(T lhs_sig, U lhs_exp, bool lh
154154
rhs_sig /= pow10(static_cast<T>(delta_exp - 1));
155155
delta_exp = 1;
156156
}
157-
}
158157

159-
if (delta_exp == 1)
160-
{
161-
detail::fenv_round(rhs_sig, rhs_sign);
158+
if (delta_exp == 1)
159+
{
160+
detail::fenv_round(rhs_sig, rhs_sign);
161+
}
162162
}
163163

164164
// Cast the results to signed types so that we can apply a sign at the end if necessary

0 commit comments

Comments
 (0)