svn commit: r304913 - projects/clang390-import/contrib/libc++/include
Dimitry Andric
dim at FreeBSD.org
Sat Aug 27 15:59:34 UTC 2016
Author: dim
Date: Sat Aug 27 15:59:32 2016
New Revision: 304913
URL: https://svnweb.freebsd.org/changeset/base/304913
Log:
Tentatively apply https://reviews.llvm.org/D23960, to squelch errors
about narrowing in <bitset>.
Modified:
projects/clang390-import/contrib/libc++/include/bitset
Modified: projects/clang390-import/contrib/libc++/include/bitset
==============================================================================
--- projects/clang390-import/contrib/libc++/include/bitset Sat Aug 27 15:22:55 2016 (r304912)
+++ projects/clang390-import/contrib/libc++/include/bitset Sat Aug 27 15:59:32 2016 (r304913)
@@ -262,7 +262,7 @@ __bitset<_N_words, _Size>::__bitset(unsi
#if __SIZEOF_SIZE_T__ == 8
: __first_{__v}
#elif __SIZEOF_SIZE_T__ == 4
- : __first_{__v, __v >> __bits_per_word}
+ : __first_{static_cast<__storage_type>(__v), static_cast<__storage_type>(__v >> __bits_per_word)}
#else
#error This constructor has not been ported to this platform
#endif
More information about the svn-src-projects
mailing list