@@ -303,8 +303,8 @@ parse_number_string(UC const *p, UC const *pend,
303
303
answer.negative = (*p == UC (' -' ));
304
304
// C++17 20.19.3.(7.1) explicitly forbids '+' sign here
305
305
if ((*p == UC (' -' )) ||
306
- (chars_format_t (options.format & chars_format::allow_leading_plus) &&
307
- !basic_json_fmt && *p == UC (' +' ))) {
306
+ (( chars_format_t (options.format & chars_format::allow_leading_plus) ) &&
307
+ ( !basic_json_fmt && *p == UC (' +' ) ))) {
308
308
++p;
309
309
if (p == pend) {
310
310
return report_parse_error<UC>(
@@ -393,14 +393,14 @@ parse_number_string(UC const *p, UC const *pend,
393
393
// Now we can parse the explicit exponential part.
394
394
am_pow_t exp_number = 0 ; // explicit exponential part
395
395
if (((p != pend) &&
396
- (((chars_format_t (options.format & chars_format::scientific) &&
397
- ((UC (' e' ) == *p) || (UC (' E' ) == *p))))
396
+ (((chars_format_t (options.format & chars_format::scientific) ) &&
397
+ ((UC (' e' ) == *p) || (UC (' E' ) == *p))))
398
398
#ifndef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
399
- || (chars_format_t (options.format & detail::basic_fortran_fmt) &&
400
- ((UC (' +' ) == *p) || (UC (' -' ) == *p) || (UC (' d' ) == *p) ||
401
- (UC (' D' ) == *p)))
399
+ || ((( chars_format_t (options.format & detail::basic_fortran_fmt)) ) &&
400
+ ((UC (' +' ) == *p) || (UC (' -' ) == *p) || (UC (' d' ) == *p) ||
401
+ (UC (' D' ) == *p)))
402
402
#endif
403
- ) )) {
403
+ )) {
404
404
UC const *location_of_e = p;
405
405
#ifdef FASTFLOAT_ONLY_POSITIVE_C_NUMBER_WO_INF_NAN
406
406
++p;
@@ -421,7 +421,7 @@ parse_number_string(UC const *p, UC const *pend,
421
421
}
422
422
}
423
423
if ((p == pend) || !is_integer (*p)) {
424
- if (!chars_format_t (options.format & chars_format::fixed)) {
424
+ if (!( chars_format_t (options.format & chars_format::fixed) )) {
425
425
// The exponential part is invalid for scientific notation, so it
426
426
// must be a trailing token for fixed notation. However, fixed
427
427
// notation is disabled, so report a scientific notation error.
@@ -445,8 +445,8 @@ parse_number_string(UC const *p, UC const *pend,
445
445
}
446
446
} else {
447
447
// If it scientific and not fixed, we have to bail out.
448
- if (chars_format_t (options.format & chars_format::scientific) &&
449
- !chars_format_t (options.format & chars_format::fixed)) {
448
+ if (( chars_format_t (options.format & chars_format::scientific) ) &&
449
+ !( chars_format_t (options.format & chars_format::fixed) )) {
450
450
return report_parse_error<UC>(p, parse_error::missing_exponential_part);
451
451
}
452
452
}
@@ -531,7 +531,7 @@ parse_int_string(UC const *p, UC const *pend, T &value,
531
531
return answer;
532
532
}
533
533
if ((*p == UC (' -' )) ||
534
- (chars_format_t (options.format & chars_format::allow_leading_plus) &&
534
+ (( chars_format_t (options.format & chars_format::allow_leading_plus) ) &&
535
535
(*p == UC (' +' )))) {
536
536
++p;
537
537
}
0 commit comments