From 0742606f199d9839123d36c5cb65c548f5f46f6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Tue, 22 Feb 2022 17:16:36 +0100 Subject: [PATCH] Fix Conversion Warning (#2782) With -Wconversion and 32 Bit I get a warning here with unsigned long long converted to unsigned long. --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index dae4d37e72e4..22c0d1b41022 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1983,7 +1983,7 @@ inline auto write_significand(Char* out, UInt significand, int significand_size, int floating_size = significand_size - integral_size; for (int i = floating_size / 2; i > 0; --i) { out -= 2; - copy2(out, digits2(significand % 100)); + copy2(out, digits2(static_cast(significand % 100))); significand /= 100; } if (floating_size % 2 != 0) {