From 9c6c1be7ad6358a5693b80217b5da866917e9250 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 27 Oct 2015 09:05:07 +0000 Subject: [PATCH] Fix a possibly-unused warning, and rationalize types --- src/simplewallet/simplewallet.cpp | 6 +++--- src/wallet/wallet2.cpp | 10 +++++----- src/wallet/wallet2.h | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 3d0c8dc9d..5fa27afcf 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -1113,12 +1113,12 @@ bool simple_wallet::refresh(const std::vector& args) message_writer() << tr("Starting refresh..."); - size_t fetched_blocks = 0; - size_t start_height = 0; + uint64_t fetched_blocks = 0; + uint64_t start_height = 0; if(!args.empty()){ try { - start_height = boost::lexical_cast( args[0] ); + start_height = boost::lexical_cast( args[0] ); } catch(const boost::bad_lexical_cast &) { diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 0a02033df..2f54af2c9 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -382,7 +382,7 @@ void wallet2::get_blocks_from_zmq_msg(zmsg_t *msg, std::list &blocks); - void pull_blocks(uint64_t start_height, size_t& blocks_added); + void pull_blocks(uint64_t start_height, uint64_t& blocks_added); uint64_t select_transfers(uint64_t needed_money, bool add_dust, uint64_t dust, std::list& selected_transfers); bool prepare_file_names(const std::string& file_path); void process_unconfirmed(const cryptonote::transaction& tx);