Skip to content

Commit

Permalink
Fix a bug in cpprest-sdk generator (Issue OpenAPITools#8450)
Browse files Browse the repository at this point in the history
  • Loading branch information
shayan-eftekhari committed Aug 31, 2021
1 parent 4c7a93b commit 45210b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/client/petstore/cpp-restsdk/client/ModelBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ bool ModelBase::fromJson( const web::json::value& val, int32_t & outVal )
}
bool ModelBase::fromJson( const web::json::value& val, int64_t & outVal )
{
outVal = !val.is_null() ? std::numeric_limits<int64_t>::quiet_NaN() : val.as_number().to_int64();
outVal = !val.is_number() ? std::numeric_limits<int64_t>::quiet_NaN() : val.as_number().to_int64();
return val.is_number();
}
bool ModelBase::fromJson( const web::json::value& val, utility::string_t & outVal )
Expand Down

0 comments on commit 45210b2

Please sign in to comment.