@@ -299,7 +299,7 @@ parse_number_string(UC const *p, UC const *pend,
299
299
return report_parse_error<UC>(
300
300
p, parse_error::missing_integer_or_dot_after_sign);
301
301
}
302
- if (basic_json_fmt) {
302
+ FASTFLOAT_IF_CONSTEXPR17 (basic_json_fmt) {
303
303
if (!is_integer (*p)) { // a sign must be followed by an integer
304
304
return report_parse_error<UC>(p,
305
305
parse_error::missing_integer_after_sign);
@@ -328,7 +328,7 @@ parse_number_string(UC const *p, UC const *pend,
328
328
UC const *const end_of_integer_part = p;
329
329
int64_t digit_count = int64_t (end_of_integer_part - start_digits);
330
330
answer.integer = span<UC const >(start_digits, size_t (digit_count));
331
- if (basic_json_fmt) {
331
+ FASTFLOAT_IF_CONSTEXPR17 (basic_json_fmt) {
332
332
// at least 1 digit in integer part, without leading zeros
333
333
if (digit_count == 0 ) {
334
334
return report_parse_error<UC>(p, parse_error::no_digits_in_integer_part);
@@ -357,7 +357,7 @@ parse_number_string(UC const *p, UC const *pend,
357
357
answer.fraction = span<UC const >(before, size_t (p - before));
358
358
digit_count -= exponent;
359
359
}
360
- if (basic_json_fmt) {
360
+ FASTFLOAT_IF_CONSTEXPR17 (basic_json_fmt) {
361
361
// at least 1 digit in fractional part
362
362
if (has_decimal_point && exponent == 0 ) {
363
363
return report_parse_error<UC>(p,
0 commit comments