X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fkey.cpp;h=546d95f648a47efdf34bd786944a71cd58efc52b;hb=c24281833da3e5ba96832c636659a53246cc7249;hp=2232324453b8e7dc8dc465dc9fab8cfe0d921eb0;hpb=4a6759691d71bf2a7d2a0a9e4710f0887e66ab02;p=novacoin.git diff --git a/src/key.cpp b/src/key.cpp index 2232324..546d95f 100644 --- a/src/key.cpp +++ b/src/key.cpp @@ -612,7 +612,7 @@ bool CPoint::setPubKey(const CPubKey &vchPubKey) // Serialize to octets stream bool CPoint::getBytes(std::vector &vchBytes) { - unsigned int nSize = EC_POINT_point2oct(group, point, POINT_CONVERSION_COMPRESSED, NULL, 0, ctx); + size_t nSize = EC_POINT_point2oct(group, point, POINT_CONVERSION_COMPRESSED, NULL, 0, ctx); vchBytes.resize(nSize); if (!(nSize == EC_POINT_point2oct(group, point, POINT_CONVERSION_COMPRESSED, &vchBytes[0], nSize, ctx))) { return false; @@ -1243,4 +1243,4 @@ void CKey::DecryptData(const std::vector& encrypted, std::vector< data.resize(length); memcpy(&data[0], decrypted, length); free(decrypted); -} \ No newline at end of file +}