Unverified Commit a581e9e5 authored by Kazantcev Andrey's avatar Kazantcev Andrey Committed by GitHub

Fix warning C4018: '<=': signed/unsigned mismatch (#1908)

parent 05a28312
...@@ -1791,7 +1791,7 @@ template <int N> uint32_t small_division_by_pow10(uint32_t n) FMT_NOEXCEPT { ...@@ -1791,7 +1791,7 @@ template <int N> uint32_t small_division_by_pow10(uint32_t n) FMT_NOEXCEPT {
static constexpr struct { static constexpr struct {
uint32_t magic_number; uint32_t magic_number;
int shift_amount; int shift_amount;
int divisor_times_10; uint32_t divisor_times_10;
} infos[] = {{0xcccd, 19, 100}, {0xa3d8, 22, 1000}}; } infos[] = {{0xcccd, 19, 100}, {0xa3d8, 22, 1000}};
constexpr auto info = infos[N - 1]; constexpr auto info = infos[N - 1];
FMT_ASSERT(n <= info.divisor_times_10, "n is too large"); FMT_ASSERT(n <= info.divisor_times_10, "n is too large");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment