Removed [-Wsign-conversion] warning in GCC

This commit is contained in:
OptoCloud 2020-10-28 10:12:08 +01:00 committed by Victor Zverovich
parent f4ca065cfb
commit bb68f6089b

View File

@ -1901,7 +1901,7 @@ template <> struct cache_accessor<double> {
uint64_t pow5 = data::powers_of_5_64[offset];
uint128_wrapper recovered_cache = umul128(base_cache.high(), pow5);
uint128_wrapper middle_low =
umul128(base_cache.low() - (kb < 0 ? 1 : 0), pow5);
umul128(base_cache.low() - (kb < 0 ? 1u : 0u), pow5);
recovered_cache += middle_low.high();