diff --git a/include/fast_float/ascii_number.h b/include/fast_float/ascii_number.h index f76b25b..9b5befe 100644 --- a/include/fast_float/ascii_number.h +++ b/include/fast_float/ascii_number.h @@ -224,9 +224,7 @@ bool simd_parse_if_eight_digits_unrolled(UC const *, uint64_t &) { template ::value) = 0> fastfloat_really_inline FASTFLOAT_CONSTEXPR20 void loop_parse_if_eight_digits(UC const *&p, UC const *const pend, uint64_t &i) { - FASTFLOAT_IF_CONSTEXPR(!has_simd_opt()) { - return; - } + FASTFLOAT_IF_CONSTEXPR(!has_simd_opt()) { return; } while (((pend - p) >= 8) && simd_parse_if_eight_digits_unrolled( p, i)) { // in rare cases, this will overflow, but that's ok @@ -249,9 +247,7 @@ loop_parse_if_eight_digits(char const *&p, char const *const pend, template ::value) = 0> fastfloat_really_inline FASTFLOAT_CONSTEXPR20 void loop_parse_if_digits(UC const *&p, UC const *const pend, uint64_t &i) { - FASTFLOAT_IF_CONSTEXPR(!has_simd_opt()) { - return; - } + FASTFLOAT_IF_CONSTEXPR(!has_simd_opt()) { return; } while (((pend - p) >= 8) && simd_parse_if_eight_digits_unrolled( p, i)) { // in rare cases, this will overflow, but that's ok diff --git a/include/fast_float/constexpr_feature_detect.h b/include/fast_float/constexpr_feature_detect.h index 22e892a..d56a1ef 100644 --- a/include/fast_float/constexpr_feature_detect.h +++ b/include/fast_float/constexpr_feature_detect.h @@ -15,7 +15,7 @@ #endif #if __cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) -#define FASTFLOAT_IF_CONSTEXPR if constexpr +#define FASTFLOAT_IF_CONSTEXPR if constexpr #else #define FASTFLOAT_IF_CONSTEXPR if #endif diff --git a/include/fast_float/float_common.h b/include/fast_float/float_common.h index ebe7cfd..ca1fd96 100644 --- a/include/fast_float/float_common.h +++ b/include/fast_float/float_common.h @@ -189,12 +189,16 @@ using parse_options = parse_options_t; #ifndef FASTFLOAT_ASSERT #define FASTFLOAT_ASSERT(x) \ - { ((void)(x)); } + { \ + ((void)(x)); \ + } #endif #ifndef FASTFLOAT_DEBUG_ASSERT #define FASTFLOAT_DEBUG_ASSERT(x) \ - { ((void)(x)); } + { \ + ((void)(x)); \ + } #endif // rust style `try!()` macro, or `?` operator