Another libc++ warning suppression on Linux; no functionality change

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@174637 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Marshall Clow 2013-02-07 17:37:58 +00:00
parent 9ae96d0f21
commit d854ce6bfa

View File

@ -71,7 +71,7 @@ thread::hardware_concurrency() _NOEXCEPT
// does not have a definite limit.
if (result == -1)
return 0;
return result;
return static_cast<unsigned>(result);
#else // defined(CTL_HW) && defined(HW_NCPU)
// TODO: grovel through /proc or check cpuid on x86 and similar
// instructions on other architectures.