Index: src/base/platform/platform-posix.cc |
diff --git a/src/base/platform/platform-posix.cc b/src/base/platform/platform-posix.cc |
index c2fa26a9ea9364b8009e7b5d4b2a0b290e06a64b..64aed2b8d1f2d0c3d3c86ef86cfd6d8fccd573e9 100644 |
--- a/src/base/platform/platform-posix.cc |
+++ b/src/base/platform/platform-posix.cc |
@@ -261,7 +261,7 @@ int OS::GetCurrentThreadId() { |
#elif V8_OS_ANDROID |
return static_cast<int>(gettid()); |
#else |
- return static_cast<int>(pthread_self()); |
+ return static_cast<int>(reinterpret_cast<intptr_t>(pthread_self())); |
#endif |
} |