fix type conversion warning.

This commit is contained in:
IRainman 2025-03-07 15:06:44 +03:00
parent aba93f306f
commit 388426e35a

View File

@ -68,8 +68,8 @@ using from_chars_result = from_chars_result_t<char>;
template <typename UC> struct parse_options_t { template <typename UC> struct parse_options_t {
FASTFLOAT_CONSTEXPR20 explicit parse_options_t(chars_format fmt = chars_format::general, FASTFLOAT_CONSTEXPR20 explicit parse_options_t(chars_format fmt = chars_format::general,
UC dot = UC('.'), uint8_t b = 10) noexcept UC dot = UC('.'), const int b = 10) noexcept
: format(fmt), decimal_point(dot), base(b) {} : format(fmt), decimal_point(dot), base(static_cast<uint8_t>(b)) {}
/** Which number formats are accepted */ /** Which number formats are accepted */
const chars_format format const chars_format format