Skip to content

Commit

Permalink
Remove assertion and fix MSVC signedness issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Feb 14, 2025
1 parent 55ebb50 commit a638a6d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions include/boost/decimal/detail/add_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ constexpr auto d32_add_impl(T lhs_sig, U lhs_exp, bool lhs_sign,
big_lhs *= detail::pow10<promoted_sig_type>(shift);
lhs_exp -= static_cast<U>(shift);
}

BOOST_DECIMAL_ASSERT(big_lhs <= std::numeric_limits<add_type>::max());
BOOST_DECIMAL_ASSERT(big_rhs <= std::numeric_limits<add_type>::max());
}

// Perform signed addition with overflow protection
Expand Down

0 comments on commit a638a6d

Please sign in to comment.