Skip to content

Commit

Permalink
Removed [-Wsign-conversion] warning in GCC
Browse files Browse the repository at this point in the history
  • Loading branch information
OptoCloud authored and vitaut committed Oct 28, 2020
1 parent f4ca065 commit bb68f60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/format-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit bb68f60

Please sign in to comment.