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