@@ -301,7 +301,7 @@ parse_number_string(UC const *p, UC const *pend,
301301#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
302302 answer.negative = (*p == UC (' -' ));
303303 // C++17 20.19.3.(7.1) explicitly forbids '+' sign here
304- if ((*p == UC (' -' )) || (uint64_t (options.format & chars_format::allow_leading_plus) &&
304+ if ((*p == UC (' -' )) || (uint8_t (options.format & chars_format::allow_leading_plus) &&
305305 !basic_json_fmt && *p == UC (' +' ))) {
306306 ++p;
307307 if (p == pend) {
@@ -385,10 +385,10 @@ parse_number_string(UC const *p, UC const *pend,
385385 }
386386 int32_t exp_number = 0 ; // explicit exponential part
387387 if (p != pend &&
388- (uint64_t (options.format & chars_format::scientific) &&
388+ (uint8_t (options.format & chars_format::scientific) &&
389389 ((UC (' e' ) == *p) || (UC (' E' ) == *p)))
390390#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
391- || (uint64_t (options.format & detail::basic_fortran_fmt) &&
391+ || (uint8_t (options.format & detail::basic_fortran_fmt) &&
392392 (UC (' d' ) == *p) || (UC (' D' ) == *p))
393393#endif
394394 ) {
@@ -406,7 +406,7 @@ parse_number_string(UC const *p, UC const *pend,
406406 }
407407 }
408408 if ((p == pend) || !is_integer (*p)) {
409- if (!uint64_t (options.format & chars_format::fixed)) {
409+ if (!uint8_t (options.format & chars_format::fixed)) {
410410 // The exponential part is invalid for scientific notation, so it must
411411 // be a trailing token for fixed notation. However, fixed notation is
412412 // disabled, so report a scientific notation error.
@@ -427,8 +427,8 @@ parse_number_string(UC const *p, UC const *pend,
427427 }
428428 } else {
429429 // If it scientific and not fixed, we have to bail out.
430- if (uint64_t (options.format & chars_format::scientific) &&
431- !uint64_t (options.format & chars_format::fixed)) {
430+ if (uint8_t (options.format & chars_format::scientific) &&
431+ !uint8_t (options.format & chars_format::fixed)) {
432432 return report_parse_error<UC>(p, parse_error::missing_exponential_part);
433433 }
434434 }
@@ -510,7 +510,7 @@ parse_int_string(UC const *p, UC const *pend, T &value,
510510 return answer;
511511 }
512512 if ((*p == UC (' -' )) ||
513- (uint64_t (options.format & chars_format::allow_leading_plus) &&
513+ (uint8_t (options.format & chars_format::allow_leading_plus) &&
514514 (*p == UC (' +' )))) {
515515 ++p;
516516 }
0 commit comments