mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-07 01:06:48 +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 {
|
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user