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