Fix building error about losing precision on Win x64

This commit is contained in:
hunbernd 2018-10-07 21:53:16 +02:00
parent 6db23267c3
commit b7d5944b9c

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)
{