mirror of
https://github.com/fastfloat/fast_float.git
synced 2025-12-06 16:56:57 +08:00
compilation fix
This commit is contained in:
parent
036ba0d153
commit
568dfef204
@ -434,7 +434,7 @@ parse_number_string(UC const *p, UC const *pend,
|
||||
if (exp_number < 0x1000) {
|
||||
// check for exponent overflow if we have too many digits.
|
||||
UC const digit = UC(*p - UC('0'));
|
||||
exp_number = 10 * exp_number + digit;
|
||||
exp_number = 10 * exp_number + static_cast<am_pow_t>(digit);
|
||||
}
|
||||
++p;
|
||||
}
|
||||
|
||||
@ -364,7 +364,9 @@ from_chars(UC const *first, UC const *last, T &value, int const base) noexcept {
|
||||
static_assert(is_supported_char_type<UC>::value,
|
||||
"only char, wchar_t, char16_t and char32_t are supported");
|
||||
|
||||
parse_options_t<UC> const options(chars_format::general, UC('.'), base);
|
||||
parse_options_t<UC> const options(
|
||||
static_cast<chars_format_t>(chars_format::general), UC('.'),
|
||||
static_cast<uint_fast8_t>(base));
|
||||
return from_chars_advanced(first, last, value, options);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user