diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-21 14:06:19 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-21 14:06:19 +0100 |
commit | 1ca9c116ec663b870e79a91b6476cd5b16a34a62 (patch) | |
tree | af44bdabb68b5e3bc64e65256e49d46ff2e815db /sal | |
parent | 4698eeea354b51d7efd6bb229898e86b3e3c0596 (diff) |
loplugin:cstylecast (on Mac OS X, where pthread_t is a pointer type)
Change-Id: Ie4474a1bae02de88ea0c79510f3730d2f829239c
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/thread.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/thread.cxx b/sal/osl/unx/thread.cxx index 0ca411383c27..2dc913c3c554 100644 --- a/sal/osl/unx/thread.cxx +++ b/sal/osl/unx/thread.cxx @@ -551,7 +551,7 @@ void SAL_CALL osl_setThreadName(char const * name) { /* osl_getThreadIdentifier @@@ see TODO @@@ */ /*****************************************************************************/ -#define HASHID(x) ((unsigned long)PTHREAD_VALUE(x) % HashSize) +#define HASHID(x) (reinterpret_cast<unsigned long>(PTHREAD_VALUE(x)) % HashSize) typedef struct _HashEntry { |