Skip to content

Commit

Permalink
update amalgamation
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jun 23, 2024
1 parent b96f7eb commit c9d013c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions amalgamation/toxcore_amalgamation.c
Original file line number Diff line number Diff line change
Expand Up @@ -32467,7 +32467,7 @@ int gc_get_savedpeer_public_key_by_slot_number(const GC_Chat *chat, uint32_t slo
const GC_SavedPeerInfo *saved_peer = &chat->saved_peers[slot_number];
if (saved_peer_is_valid(saved_peer)) {
const int peernumber = get_peer_number_of_enc_pk(chat, saved_peer->public_key, true);
if (peernumber < 0) {
if (peernumber >= 0) {
memcpy(public_key, saved_peer->public_key, ENC_PUBLIC_KEY_SIZE);
return 0;
}
Expand Down Expand Up @@ -37291,7 +37291,7 @@ uint32_t get_group_offline_peercount(const GC_Chat *chat)
const GC_SavedPeerInfo *saved_peer = &chat->saved_peers[i];
if (saved_peer_is_valid(saved_peer)) {
const int peernumber = get_peer_number_of_enc_pk(chat, saved_peer->public_key, true);
if (peernumber < 0) {
if (peernumber >= 0) {
++sum;
}
}
Expand Down
4 changes: 2 additions & 2 deletions amalgamation/toxcore_amalgamation_no_toxav.c
Original file line number Diff line number Diff line change
Expand Up @@ -29967,7 +29967,7 @@ int gc_get_savedpeer_public_key_by_slot_number(const GC_Chat *chat, uint32_t slo
const GC_SavedPeerInfo *saved_peer = &chat->saved_peers[slot_number];
if (saved_peer_is_valid(saved_peer)) {
const int peernumber = get_peer_number_of_enc_pk(chat, saved_peer->public_key, true);
if (peernumber < 0) {
if (peernumber >= 0) {
memcpy(public_key, saved_peer->public_key, ENC_PUBLIC_KEY_SIZE);
return 0;
}
Expand Down Expand Up @@ -34791,7 +34791,7 @@ uint32_t get_group_offline_peercount(const GC_Chat *chat)
const GC_SavedPeerInfo *saved_peer = &chat->saved_peers[i];
if (saved_peer_is_valid(saved_peer)) {
const int peernumber = get_peer_number_of_enc_pk(chat, saved_peer->public_key, true);
if (peernumber < 0) {
if (peernumber >= 0) {
++sum;
}
}
Expand Down

0 comments on commit c9d013c

Please sign in to comment.