diff options
author | Jeff Garzik <jeff@garzik.org> | 2012-04-15 16:52:09 -0400 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-04-17 14:57:42 -0400 |
commit | 774e9b6dbb2c967ec979351cc4dba82fc0102ee1 (patch) | |
tree | 7932e0dbd15d6990c190c1240d439a424510a73d /src/uint256.h | |
parent | ef2f3ddaf764f886fbb4d6004844fe88b8029cf2 (diff) | |
download | bitcoin-774e9b6dbb2c967ec979351cc4dba82fc0102ee1.tar.xz |
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.
Diffstat (limited to 'src/uint256.h')
-rw-r--r-- | src/uint256.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uint256.h b/src/uint256.h index 07809e49a8..bbdba99533 100644 --- a/src/uint256.h +++ b/src/uint256.h @@ -294,7 +294,7 @@ public: std::string GetHex() const { char psz[sizeof(pn)*2 + 1]; - for (int i = 0; i < sizeof(pn); i++) + for (unsigned int i = 0; i < sizeof(pn); i++) sprintf(psz + i*2, "%02x", ((unsigned char*)pn)[sizeof(pn) - i - 1]); return std::string(psz, psz + sizeof(pn)*2); } |