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

Michael Stahl mstahl at redhat.com
Mon Sep 18 10:47:12 UTC 2017


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

New commits:
commit 0083b33650c2f584ceff6eeaf9ef6993bfe0ae9b
Author: Michael Stahl <mstahl at redhat.com>
Date:   Mon Sep 18 12:44:24 2017 +0200

    sal: -Werror,-Wsign-compare (32-bit)
    
    Change-Id: I204716eea112a1c99f6ac4df0d138c4c7d8b68e3

diff --git a/sal/osl/unx/thread.cxx b/sal/osl/unx/thread.cxx
index 9c7bb372d592..c2705c8c08cc 100644
--- a/sal/osl/unx/thread.cxx
+++ b/sal/osl/unx/thread.cxx
@@ -625,7 +625,7 @@ static oslThreadIdentifier insertThreadId (pthread_t hThread)
 
 #if defined LINUX && ! defined __FreeBSD_kernel__
         long lin_tid = syscall(SYS_gettid);
-        if (lin_tid <= 0 || lin_tid > SAL_MAX_UINT32)
+        if (lin_tid <= 0 || SAL_MAX_UINT32 < static_cast<unsigned long>(lin_tid))
             std::abort();
         pEntry->Ident = static_cast<pid_t>(lin_tid);
 #elif defined MACOSX || defined IOS


More information about the Libreoffice-commits mailing list