mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
fixed NaN handling errors
This commit is contained in:
parent
9af906dc21
commit
a134e2b9ff
@ -1774,8 +1774,8 @@ namespace crow
|
||||
{
|
||||
if (v.nt == num_type::Floating_point)
|
||||
{
|
||||
if(isnan(v.num.data) || isinf(v.num.data)){
|
||||
CROW_LOG_WARNING << "JSON value is NaN or infinite."
|
||||
if(isnan(v.num.d) || isinf(v.num.d)){
|
||||
CROW_LOG_WARNING << "JSON value is NaN or infinite.";
|
||||
break;
|
||||
}
|
||||
#ifdef _MSC_VER
|
||||
|
Loading…
Reference in New Issue
Block a user