diff --git a/lib/base/tlsutility.cpp b/lib/base/tlsutility.cpp index dd4522cbd..ff3c10e1b 100644 --- a/lib/base/tlsutility.cpp +++ b/lib/base/tlsutility.cpp @@ -38,7 +38,7 @@ static unsigned long OpenSSLIDCallback(void) #ifdef _WIN32 return reinterpret_cast(GetCurrentThreadId()); #else /* _WIN32 */ - return reinterpret_cast(pthread_self()); + return (unsigned long)pthread_self(); #endif /* _WIN32 */ }