Prefer 'unsigned int' for loop index variables tested against ::size()
authorJeff Garzik <jgarzik@exmulti.com>
Sun, 22 Apr 2012 17:22:39 +0000 (13:22 -0400)
committerJeff Garzik <jgarzik@redhat.com>
Sun, 22 Apr 2012 17:22:39 +0000 (13:22 -0400)
commitfaf705a42a05197d89abfc31672ced94d268767f
tree4ebc78c985db96ba9e602b3c6c49ed8ecefc0d9a
parent457661f6400030f5979564462e8c625840cc5e58
Prefer 'unsigned int' for loop index variables tested against ::size()

C++ STL ::size() generally returns unsigned, which implies that "int idx"
style of loop variable will generate a signed-vs-unsigned comparison warning
when testing the loop exit condition "idx < blah.size()"

Update areas of the bitcoin code where loop variables may be more properly and
correctly defined as unsigned.
src/bignum.h
src/script.cpp
src/wallet.cpp