fix osx clang compile

This commit is contained in:
Aleksandar Fabijanic 2018-01-31 13:10:58 -06:00 committed by GitHub
parent a4c744fdba
commit c8c6662069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);