X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fuint256.h;h=bbdba995334fa4bdd6fdf4cedc04c8f58a4a447e;hp=07809e49a8f843921ee77b3586cf9bd76103481e;hb=774e9b6dbb2c967ec979351cc4dba82fc0102ee1;hpb=ef2f3ddaf764f886fbb4d6004844fe88b8029cf2 diff --git a/src/uint256.h b/src/uint256.h index 07809e4..bbdba99 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); }