Browse Source

fix osx clang compile

Aleksandar Fabijanic 8 years ago
parent
commit
c8c6662069
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Crypto/src/CryptoException.cpp

+ 2 - 2
Crypto/src/CryptoException.cpp

@@ -87,9 +87,9 @@ Poco::Exception* OpenSSLException::clone() const
 
 void OpenSSLException::setExtMessage()
 {
-	unsigned long e = ERR_get_error();
+	Poco::UInt64 e = static_cast<Poco::UInt64>(ERR_get_error());
 	char buf[128] = { 0 };
-	char* pErr = ERR_error_string(e, buf);
+	char* pErr = ERR_error_string(static_cast<unsigned long>(e), buf);
 	std::string err;
 	if (pErr) err = pErr;
 	else err = NumberFormatter::format(e);