From a290e536e0bfac585db136d9e233019c8badb528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Mon, 21 Feb 2022 10:55:26 +0100 Subject: [PATCH] Fix Conversion Warning 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 cae24f144064..d4d550ff1ea0 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) {