summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libcxx/src/thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/thread.cpp b/libcxx/src/thread.cpp
index b2bd07e9d3b..184d81e6b2f 100644
--- a/libcxx/src/thread.cpp
+++ b/libcxx/src/thread.cpp
@@ -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.
OpenPOWER on IntegriCloud