Skip to content

Commit

Permalink
removed use of json_object_new_uint64
Browse files Browse the repository at this point in the history
  • Loading branch information
mdorier committed Aug 8, 2024
1 parent 7360f08 commit 73f4715
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/centralized/centralized-backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ static flock_return_t centralized_create_group(
json_object_new_double(ping_interval_ms_min));
}
json_object_object_add(config, "ping_max_num_timeouts",
json_object_new_uint64(ping_max_num_timeouts));
json_object_new_int64((int64_t)ping_max_num_timeouts));
json_object_object_add(config, "primary_address", json_object_new_string(primary_member->address));
json_object_object_add(config, "primary_provider_id", json_object_new_int64(primary_member->provider_id));

Expand Down
2 changes: 1 addition & 1 deletion src/view-serialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ flock_return_t flock_group_view_serialize(
json_object_object_add(member,
"address", json_object_new_string(v->members.data[i].address));
json_object_object_add(member,
"provider_id", json_object_new_uint64(v->members.data[i].provider_id));
"provider_id", json_object_new_int64((int64_t)v->members.data[i].provider_id));
json_object_array_add(members, member);
}

Expand Down

0 comments on commit 73f4715

Please sign in to comment.