diff options
| author | Jeff Garzik <[email protected]> | 2012-04-15 16:52:09 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-04-15 16:52:09 -0400 |
| commit | c376ac359ec8551823b4ee14c85d85a49f2d3436 (patch) | |
| tree | 121093f97279ca969a424f3792e64c41f8a05b48 /src/uint256.h | |
| parent | The string class returns string::npos, when find() fails. (diff) | |
| download | discoin-c376ac359ec8551823b4ee14c85d85a49f2d3436.tar.xz discoin-c376ac359ec8551823b4ee14c85d85a49f2d3436.zip | |
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 094781678..309c1f799 100644 --- a/src/uint256.h +++ b/src/uint256.h @@ -287,7 +287,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); } |