From d854ce6bfaa35c4079872dc68ba18ac1fe7f49e2 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Thu, 7 Feb 2013 17:37:58 +0000 Subject: [PATCH] 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 --- src/thread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread.cpp b/src/thread.cpp index b2bd07e9d..184d81e6b 100644 --- a/src/thread.cpp +++ b/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(result); #else // defined(CTL_HW) && defined(HW_NCPU) // TODO: grovel through /proc or check cpuid on x86 and similar // instructions on other architectures.