projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d58e0f5
)
Another libc++ warning suppression on Linux; no functionality change
author
Marshall Clow
<mclow@qualcomm.com>
Thu, 7 Feb 2013 17:37:58 +0000
(17:37 +0000)
committer
Marshall Clow
<mclow@qualcomm.com>
Thu, 7 Feb 2013 17:37:58 +0000
(17:37 +0000)
llvm-svn: 174637
libcxx/src/thread.cpp
patch
|
blob
|
history
diff --git
a/libcxx/src/thread.cpp
b/libcxx/src/thread.cpp
index
b2bd07e
..
184d81e
100644
(file)
--- 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.