THRIFT-1071 invalid cast breaks build
authorRoger Meier <roger@apache.org>
Tue, 22 Feb 2011 21:56:33 +0000 (21:56 +0000)
committerRoger Meier <roger@apache.org>
Tue, 22 Feb 2011 21:56:33 +0000 (21:56 +0000)
Patch: Rowan Kerr

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1073526 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/transport/TSSLSocket.cpp

index f84f806..5e18e94 100644 (file)
@@ -478,7 +478,7 @@ static void callbackLocking(int mode, int n, const char*, int) {
 
 #if (OPENSSL_VERSION_NUMBER < OPENSSL_VERSION_NO_THREAD_ID)
 static unsigned long callbackThreadID() {
-  return reinterpret_cast<unsigned long>(pthread_self());
+  return (unsigned long) pthread_self();
 }
 #endif