mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
fix: prevent windows minmax macro
This commit is contained in:
@@ -84,7 +84,7 @@ parse_binary_integer(location& loc)
|
||||
if(*i == '1')
|
||||
{
|
||||
retval += base;
|
||||
if(std::numeric_limits<integer>::max() / 2 < base)
|
||||
if( (std::numeric_limits<integer>::max)() / 2 < base )
|
||||
{
|
||||
base = 0;
|
||||
}
|
||||
@@ -92,7 +92,7 @@ parse_binary_integer(location& loc)
|
||||
}
|
||||
else if(*i == '0')
|
||||
{
|
||||
if(std::numeric_limits<integer>::max() / 2 < base)
|
||||
if( (std::numeric_limits<integer>::max)() / 2 < base )
|
||||
{
|
||||
base = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user