From b7d5944b9c899622bd3cc14e763f159975c61371 Mon Sep 17 00:00:00 2001 From: hunbernd Date: Sun, 7 Oct 2018 21:53:16 +0200 Subject: [PATCH] Fix building error about losing precision on Win x64 --- libretroshare/src/pgp/rscertificate.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/pgp/rscertificate.cc b/libretroshare/src/pgp/rscertificate.cc index 76e2005b8..4ead10c3e 100644 --- a/libretroshare/src/pgp/rscertificate.cc +++ b/libretroshare/src/pgp/rscertificate.cc @@ -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) {