Fix a possibly-unused warning, and rationalize types

This commit is contained in:
moneromooo-monero
2015-10-27 09:05:07 +00:00
parent 7003e7c156
commit 6df4e67cd2
3 changed files with 12 additions and 12 deletions

View File

@@ -1104,12 +1104,12 @@ bool simple_wallet::refresh(const std::vector<std::string>& 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<int>( args[0] );
start_height = boost::lexical_cast<uint64_t>( args[0] );
}
catch(const boost::bad_lexical_cast &)
{