Merge pull request #3 from hunbernd/fix/win64

Fix building error about losing precision on Win x64
This commit is contained in:
G10h4ck 2018-10-07 22:29:42 +02:00 committed by GitHub
commit b8af13f0b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -297,7 +297,7 @@ bool RsCertificate::initFromString(const std::string& instr,uint32_t& err_code)
unsigned char *buf2 = buf;
uint32_t s = PGPKeyParser::read_125Size(buf);
total_s += 1 + ((unsigned long)buf-(unsigned long)buf2) ;
total_s += 1 + ((size_t)buf-(size_t)buf2) ;
if(total_s > size)
{