blockchain_blackball: use %zu for size_t

This commit is contained in:
moneromooo-monero 2018-09-14 17:11:58 +00:00
parent db3db0930e
commit 9bdc9109fb
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -972,7 +972,7 @@ static bool export_spent_outputs(MDB_cursor *cur, const std::string &filename)
if (pending_offsets.size() == 1) if (pending_offsets.size() == 1)
fprintf(f, "%" PRIu64 "\n", pending_offsets.front()); fprintf(f, "%" PRIu64 "\n", pending_offsets.front());
else else
fprintf(f, "%" PRIu64 "*%" PRIu64 "\n", pending_offsets.front(), pending_offsets.size()); fprintf(f, "%" PRIu64 "*%zu\n", pending_offsets.front(), pending_offsets.size());
pending_offsets.clear(); pending_offsets.clear();
} }
if (pending_amount != amount) if (pending_amount != amount)
@ -987,7 +987,7 @@ static bool export_spent_outputs(MDB_cursor *cur, const std::string &filename)
if (pending_offsets.size() == 1) if (pending_offsets.size() == 1)
fprintf(f, "%" PRIu64 "\n", pending_offsets.front()); fprintf(f, "%" PRIu64 "\n", pending_offsets.front());
else else
fprintf(f, "%" PRIu64 "*%" PRIu64 "\n", pending_offsets.front(), pending_offsets.size()); fprintf(f, "%" PRIu64 "*%zu\n", pending_offsets.front(), pending_offsets.size());
pending_offsets.clear(); pending_offsets.clear();
} }
fclose(f); fclose(f);