From bb68f6089b346a02777664144e692d2d0d3e5e21 Mon Sep 17 00:00:00 2001 From: OptoCloud <26223094+OptoCloud@users.noreply.github.com> Date: Wed, 28 Oct 2020 10:12:08 +0100 Subject: [PATCH] Removed [-Wsign-conversion] warning in GCC --- include/fmt/format-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format-inl.h b/include/fmt/format-inl.h index b7cb3209..8155bd78 100644 --- a/include/fmt/format-inl.h +++ b/include/fmt/format-inl.h @@ -1901,7 +1901,7 @@ template <> struct cache_accessor { 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();