fix conflict with minwindef.h on windows (#426)

This commit is contained in:
nyako
2024-04-07 02:14:01 -03:00
committed by GitHub
parent dcf3e1a551
commit c39022e047

View File

@@ -976,11 +976,11 @@ integer_parser(const std::string& text, T& value)
US limit = 0;
if (negative)
{
limit = static_cast<US>(std::abs(static_cast<intmax_t>(std::numeric_limits<T>::min())));
limit = static_cast<US>(std::abs(static_cast<intmax_t>((std::numeric_limits<T>::min)())));
}
else
{
limit = std::numeric_limits<T>::max();
limit = (std::numeric_limits<T>::max)();
}
if (base != 0 && result > limit / base)