From ab9ef0e87ec7b787bd38873738f9c33107092ca6 Mon Sep 17 00:00:00 2001 From: Junekey Jeon Date: Wed, 11 Jan 2023 18:17:26 -0800 Subject: [PATCH] Fix signed to unsigned implicit conversion warning --- 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 3a41e520..a672a28d 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3671,7 +3671,7 @@ FMT_CONSTEXPR20 auto format_float(Float value, int precision, float_specs specs, ++exp; } } - buf.try_resize(precision); + buf.try_resize(to_unsigned(precision)); } } // if (digits_in_the_first_segment > precision) else {