Chromium Code Reviews| Index: base/threading/platform_thread_posix.cc |
| diff --git a/base/threading/platform_thread_posix.cc b/base/threading/platform_thread_posix.cc |
| index 388f8baf62425ab50e6ecc7ab0583a78940daf89..dd903b97c7238acb5fa070a48b113decb6822a44 100644 |
| --- a/base/threading/platform_thread_posix.cc |
| +++ b/base/threading/platform_thread_posix.cc |
| @@ -160,9 +160,9 @@ PlatformThreadId PlatformThread::CurrentId() { |
| return syscall(__NR_gettid); |
| #elif defined(OS_ANDROID) |
| return gettid(); |
| -#elif defined(OS_NACL) || defined(OS_SOLARIS) |
| +#elif defined(OS_SOLARIS) |
| return pthread_self(); |
| -#elif defined(OS_POSIX) |
| +#elif defined(OS_NACL) || (OS_POSIX) |
| return reinterpret_cast<int64>(pthread_self()); |
|
bbudge
2012/05/22 01:58:14
Maybe it would be better to cast to int32 since pt
|
| #endif |
| } |