mirror of
https://github.com/jarro2783/cxxopts.git
synced 2026-01-18 01:11:24 +01:00
fix conflict with minwindef.h on windows (#426)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user