Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ljcui committed Mar 18, 2024
1 parent c94e04a commit bae4244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osgraph/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace lgraph {

lgraph_api::FieldData JsonToFieldData(const nlohmann::json& j_object) {
if (j_object.is_number_integer()) {
return lgraph_api::FieldData(j_object.get<int64_t>());
return lgraph_api::FieldData(j_object.get<int32_t>());
} else if (j_object.is_string()) {
return lgraph_api::FieldData(j_object.get<std::string>());
} else if (j_object.is_number_float()) {
Expand Down

0 comments on commit bae4244

Please sign in to comment.