[libcxx] r174637 - Another libc++ warning suppression on Linux; no functionality change

Marshall Clow mclow at qualcomm.com
Thu Feb 7 09:37:59 PST 2013


Author: marshall
Date: Thu Feb  7 11:37:58 2013
New Revision: 174637

URL: http://llvm.org/viewvc/llvm-project?rev=174637&view=rev
Log:
Another libc++ warning suppression on Linux; no functionality change

Modified:
    libcxx/trunk/src/thread.cpp

Modified: libcxx/trunk/src/thread.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/thread.cpp?rev=174637&r1=174636&r2=174637&view=diff
==============================================================================
--- libcxx/trunk/src/thread.cpp (original)
+++ libcxx/trunk/src/thread.cpp Thu Feb  7 11:37:58 2013
@@ -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.





More information about the cfe-commits mailing list