File tree Expand file tree Collapse file tree
include/bitcoin/system/impl/math Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -306,8 +306,7 @@ template <typename Value, if_unsigned_integral_integer<Value>>
306306constexpr void shift_left_into (Value& value, size_t shift, bool overflow) NOEXCEPT
307307{
308308 constexpr auto span = bits<Value>;
309- overflow && shift >= span ? value = 0 : depromote<Value>(
310- value <<= (shift % span));
309+ overflow && shift >= span ? value = 0 : value <<= (shift % span);
311310}
312311
313312// signed overloads (shift left of negative is undefined behavior).
@@ -337,8 +336,7 @@ template <typename Value, if_unsigned_integral_integer<Value>>
337336constexpr void shift_right_into (Value& value, size_t shift, bool overflow) NOEXCEPT
338337{
339338 constexpr auto span = bits<Value>;
340- overflow && shift >= span ? value = 0 : depromote<Value>(
341- value >>= (shift % span));
339+ overflow && shift >= span ? value = 0 : value >>= (shift % span);
342340}
343341
344342// signed overloads (shift right of negative is unspecified behavior).
You can’t perform that action at this time.
0 commit comments