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

Michael Stahl mstahl at redhat.com
Wed Oct 1 03:13:34 PDT 2014


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

New commits:
commit 460a807809c31fbce94daacff1c89018d9ae2610
Author: Michael Stahl <mstahl at redhat.com>
Date:   Wed Oct 1 12:07:30 2014 +0200

    sal: work around spurious Apple clang warning about pointer cast to int
    
    Change-Id: I4e4281ac8767c9a6b6b85bc759f28bcf074d8e39

diff --git a/sal/osl/unx/thread.cxx b/sal/osl/unx/thread.cxx
index 1f0a587..739dd18 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 int)PTHREAD_VALUE(x) % HashSize)
+#define HASHID(x) ((unsigned long)PTHREAD_VALUE(x) % HashSize)
 
 typedef struct _HashEntry
 {


More information about the Libreoffice-commits mailing list