Fix signed to unsigned implicit conversion warning

This commit is contained in:
Junekey Jeon 2023-01-11 18:17:26 -08:00
parent cc4a49604d
commit ab9ef0e87e

View File

@ -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 {