Skip to content

Commit

Permalink
descriptor: use size_t for iterating records
Browse files Browse the repository at this point in the history
  • Loading branch information
jgriffiths authored and JamieDriver committed Jan 29, 2025
1 parent bfba733 commit a3cccd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main/descriptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ void descriptor_get_valid_record_names(

// Load description of each - remove ones that are not valid for this wallet
size_t written = 0;
for (int i = 0; i < num_descriptors; ++i) {
for (size_t i = 0; i < num_descriptors; ++i) {
const char* errmsg = NULL;
descriptor_data_t descriptor_data;
if (descriptor_load_from_storage(names[i], &descriptor_data, &errmsg)) {
Expand Down
2 changes: 1 addition & 1 deletion main/multisig.c
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ void multisig_get_valid_record_names(

// Load description of each - remove ones that are not valid for this wallet or passed script type
size_t written = 0;
for (int i = 0; i < num_multisigs; ++i) {
for (size_t i = 0; i < num_multisigs; ++i) {
const char* errmsg = NULL;
multisig_data_t multisig_data;
if (multisig_load_from_storage(names[i], &multisig_data, NULL, 0, NULL, &errmsg)
Expand Down

0 comments on commit a3cccd7

Please sign in to comment.