Kaydet (Commit) 0f3b52bc authored tarafından Stephan Bergmann's avatar Stephan Bergmann

The '<= 0' check can go now

...after 0083b336 "sal: -Werror,-Wsign-compare
(32-bit)" cast the check against SAL_MAX_UINT32 to unsigned, anyway.  (And the
check for == 0 is already handled in the platform-generic part below.)

Change-Id: I0d0354cb9368bffef5d3aa835f865524d106a6f3
üst e7b90085
......@@ -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 || SAL_MAX_UINT32 < static_cast<unsigned long>(lin_tid))
if (SAL_MAX_UINT32 < static_cast<unsigned long>(lin_tid))
std::abort();
pEntry->Ident = static_cast<pid_t>(lin_tid);
#elif defined MACOSX || defined IOS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment