Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

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.
  • Loading branch information...
bnoordhuis committed Sep 2, 2012
1 parent 298f6bf commit 870307de75b4fb4a1a8dcc63294d442d1e13545b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/
@@ -96,7 +96,7 @@ static void crypto_threadid_cb(CRYPTO_THREADID* tid) {
#ifdef _WIN32
val = static_cast<unsigned long>(GetCurrentThreadId());
val = static_cast<unsigned long>(pthread_self());
val = (unsigned long) pthread_self();

CRYPTO_THREADID_set_numeric(tid, val);

0 comments on commit 870307d

Please sign in to comment.
You can’t perform that action at this time.