diff --git a/include/fast_float/ascii_number.h b/include/fast_float/ascii_number.h index 25ac40d..9001016 100644 --- a/include/fast_float/ascii_number.h +++ b/include/fast_float/ascii_number.h @@ -482,7 +482,14 @@ parse_int_string(UC const *p, UC const *pend, T &value, UC const *const first = p; bool const negative = (*p == UC('-')); +#ifdef FASTFLOAT_VISUAL_STUDIO +#pragma warning(push) +#pragma warning(disable : 4127) +#endif if (!std::is_signed::value && negative) { +#ifdef FASTFLOAT_VISUAL_STUDIO +#pragma warning(pop) +#endif answer.ec = std::errc::invalid_argument; answer.ptr = first; return answer;