diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-09-18 12:44:24 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-09-18 12:45:01 +0200 |
commit | 0083b33650c2f584ceff6eeaf9ef6993bfe0ae9b (patch) | |
tree | 980c9f5e1a9f2370dc29e086582c6de22292911a | |
parent | 050b1d0924aeaec6be5ca520617c5e511d99571a (diff) |
sal: -Werror,-Wsign-compare (32-bit)
Change-Id: I204716eea112a1c99f6ac4df0d138c4c7d8b68e3
-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 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 |