diff options
author | Riccardo Spagni <ric@spagni.net> | 2014-10-06 10:16:38 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2014-10-06 10:27:17 +0200 |
commit | 664ae0085d014680ea36358724610486b28239c2 (patch) | |
tree | 80bec755be82d379d02ca1818a206e31cfb594ff | |
parent | Merge pull request #171 (diff) | |
parent | fixed signed-unsigned issue from 166 (diff) | |
download | monero-664ae0085d014680ea36358724610486b28239c2.tar.xz |
Merge pull request #167
aeaa44f fixed signed-unsigned issue from 166 (Thomas Winget)
-rw-r--r-- | src/cryptonote_core/checkpoints_create.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_core/checkpoints_create.cpp b/src/cryptonote_core/checkpoints_create.cpp index 140f8dae3..4ac2f0e5b 100644 --- a/src/cryptonote_core/checkpoints_create.cpp +++ b/src/cryptonote_core/checkpoints_create.cpp @@ -125,9 +125,9 @@ bool load_checkpoints_from_dns(cryptonote::checkpoints& checkpoints) std::random_device rd; std::mt19937 gen(rd()); std::uniform_int_distribution<int> dis(0, dns_urls.size() - 1); - int first_index = dis(gen); + size_t first_index = dis(gen); - int cur_index = first_index; + size_t cur_index = first_index; do { records = tools::DNSResolver::instance().get_txt_record(dns_urls[cur_index], avail, valid); |