You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2011/02/22 22:56:33 UTC

svn commit: r1073526 - /thrift/trunk/lib/cpp/src/transport/TSSLSocket.cpp

Author: roger
Date: Tue Feb 22 21:56:33 2011
New Revision: 1073526

URL: http://svn.apache.org/viewvc?rev=1073526&view=rev
Log:
THRIFT-1071 invalid cast breaks build
Patch: Rowan Kerr

Modified:
    thrift/trunk/lib/cpp/src/transport/TSSLSocket.cpp

Modified: thrift/trunk/lib/cpp/src/transport/TSSLSocket.cpp
URL: http://svn.apache.org/viewvc/thrift/trunk/lib/cpp/src/transport/TSSLSocket.cpp?rev=1073526&r1=1073525&r2=1073526&view=diff
==============================================================================
--- thrift/trunk/lib/cpp/src/transport/TSSLSocket.cpp (original)
+++ thrift/trunk/lib/cpp/src/transport/TSSLSocket.cpp Tue Feb 22 21:56:33 2011
@@ -478,7 +478,7 @@ static void callbackLocking(int mode, in
 
 #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