mirror of https://github.com/nodejs/node.git
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.pull/24504/head
parent
298f6bff5b
commit
870307de75
|
@ -96,7 +96,7 @@ static void crypto_threadid_cb(CRYPTO_THREADID* tid) {
|
|||
#ifdef _WIN32
|
||||
val = static_cast<unsigned long>(GetCurrentThreadId());
|
||||
#else
|
||||
val = static_cast<unsigned long>(pthread_self());
|
||||
val = (unsigned long) pthread_self();
|
||||
#endif
|
||||
|
||||
CRYPTO_THREADID_set_numeric(tid, val);
|
||||
|
|
Loading…
Reference in New Issue