[Libreoffice-commits] core.git: sal/osl

Stephan Bergmann sbergman at redhat.com
Wed Jan 21 05:06:55 PST 2015


 sal/osl/unx/thread.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1ca9c116ec663b870e79a91b6476cd5b16a34a62
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Jan 21 14:06:19 2015 +0100

    loplugin:cstylecast (on Mac OS X, where pthread_t is a pointer type)
    
    Change-Id: Ie4474a1bae02de88ea0c79510f3730d2f829239c

diff --git a/sal/osl/unx/thread.cxx b/sal/osl/unx/thread.cxx
index 0ca4113..2dc913c 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
 {


More information about the Libreoffice-commits mailing list