compilation fix

This commit is contained in:
IRainman 2025-05-06 23:21:59 +03:00
parent 036ba0d153
commit 568dfef204
2 changed files with 4 additions and 2 deletions

View File

@ -434,7 +434,7 @@ parse_number_string(UC const *p, UC const *pend,
if (exp_number < 0x1000) { if (exp_number < 0x1000) {
// check for exponent overflow if we have too many digits. // check for exponent overflow if we have too many digits.
UC const digit = UC(*p - UC('0')); 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; ++p;
} }

View File

@ -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, static_assert(is_supported_char_type<UC>::value,
"only char, wchar_t, char16_t and char32_t are supported"); "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); return from_chars_advanced(first, last, value, options);
} }