From 870307de75b4fb4a1a8dcc63294d442d1e13545b Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 2 Sep 2012 13:45:56 +0200 Subject: [PATCH] crypto: fix build error on OS X pthread_t is a pointer type on OS X but an unsigned long on most other platforms. Use a C style cast because reinterpret_cast nor static_cast work in all cases. --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 7a06fae2c37..5b2029c32aa 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -96,7 +96,7 @@ static void crypto_threadid_cb(CRYPTO_THREADID* tid) { #ifdef _WIN32 val = static_cast(GetCurrentThreadId()); #else - val = static_cast(pthread_self()); + val = (unsigned long) pthread_self(); #endif CRYPTO_THREADID_set_numeric(tid, val);