Skip to content

Commit

Permalink
fix: handle int64 in conversion from json to APIData
Browse files Browse the repository at this point in the history
  • Loading branch information
beniz authored and sileht committed Oct 16, 2020
1 parent fd020af commit 863e697
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/apidata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ namespace dd
{
add(cit->name.GetString(), cit->value.GetInt());
}
else if (cit->value.IsInt64())
{
add(cit->name.GetString(), cit->value.GetInt64());
}
else
{
throw DataConversionException("conversion error: unknown type");
Expand Down

0 comments on commit 863e697

Please sign in to comment.