From 388426e35a0823e0b6920c4b531c5a20d72c6cf5 Mon Sep 17 00:00:00 2001 From: IRainman Date: Fri, 7 Mar 2025 15:06:44 +0300 Subject: [PATCH] fix type conversion warning. --- include/fast_float/float_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fast_float/float_common.h b/include/fast_float/float_common.h index 9ef2e87..d2ad2dd 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -68,8 +68,8 @@ using from_chars_result = from_chars_result_t; template 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(b)) {} /** Which number formats are accepted */ const chars_format format