Fix loop index var types, fixing many minor sign comparison warnings

foo.size() typically returns an unsigned integral type; make loop variables
match those types' signedness.
This commit is contained in:
Jeff Garzik
2012-04-15 16:52:09 -04:00
committed by Jeff Garzik
parent ab9dc75a18
commit c376ac359e
10 changed files with 44 additions and 44 deletions

View File

@@ -1000,7 +1000,7 @@ Value addmultisigaddress(const Array& params, bool fHelp)
"(got %d, need at least %d)", keys.size(), nRequired));
std::vector<CKey> pubkeys;
pubkeys.resize(keys.size());
for (int i = 0; i < keys.size(); i++)
for (unsigned int i = 0; i < keys.size(); i++)
{
const std::string& ks = keys[i].get_str();