Another libc++ warning suppression on Linux; no functionality change
authorMarshall Clow <mclow@qualcomm.com>
Thu, 7 Feb 2013 17:37:58 +0000 (17:37 +0000)
committerMarshall Clow <mclow@qualcomm.com>
Thu, 7 Feb 2013 17:37:58 +0000 (17:37 +0000)
llvm-svn: 174637

libcxx/src/thread.cpp

index b2bd07e..184d81e 100644 (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.