diff --git a/include/fast_float/ascii_number.h b/include/fast_float/ascii_number.h index cc4bd2a..016aec1 100644 --- a/include/fast_float/ascii_number.h +++ b/include/fast_float/ascii_number.h @@ -367,7 +367,7 @@ parse_number_string(UC const *p, UC const *pend, i = i * 10 + digit; // in rare cases, this will overflow, but that's ok ++p; } - exponent = static_cast(before - p); + exponent = int16_t(before - p); answer.fraction = span(before, size_t(p - before)); digit_count -= exponent; }