mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
fix type conversion warning.
This commit is contained in:
parent
aba93f306f
commit
388426e35a
@ -68,8 +68,8 @@ using from_chars_result = from_chars_result_t<char>;
|
||||
|
||||
template <typename UC> struct parse_options_t {
|
||||
FASTFLOAT_CONSTEXPR20 explicit parse_options_t(chars_format fmt = chars_format::general,
|
||||
UC dot = UC('.'), uint8_t b = 10) noexcept
|
||||
: format(fmt), decimal_point(dot), base(b) {}
|
||||
UC dot = UC('.'), const int b = 10) noexcept
|
||||
: format(fmt), decimal_point(dot), base(static_cast<uint8_t>(b)) {}
|
||||
|
||||
/** Which number formats are accepted */
|
||||
const chars_format format
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user