summaryrefslogtreecommitdiffstats
path: root/libcxx/src/thread.cpp
diff options
context:
space:
mode:
authorMarshall Clow <mclow@qualcomm.com>2013-02-07 17:37:58 +0000
committerMarshall Clow <mclow@qualcomm.com>2013-02-07 17:37:58 +0000
commit63f700e4d1876abcce74276dbf9838f9902e7664 (patch)
tree287881873509e7586bc7155e6549355d520e2681 /libcxx/src/thread.cpp
parentd58e0f5505297e2e318606c6cf0b5c706994b6df (diff)
downloadbcm5719-llvm-63f700e4d1876abcce74276dbf9838f9902e7664.tar.gz
bcm5719-llvm-63f700e4d1876abcce74276dbf9838f9902e7664.zip
Another libc++ warning suppression on Linux; no functionality change
llvm-svn: 174637
Diffstat (limited to 'libcxx/src/thread.cpp')
-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