bitset (_Base_bitset<>_Base_bitset(unsigned long long)): Convert __val to _WordT.

2010-11-02  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/std/bitset (_Base_bitset<>_Base_bitset(unsigned long long)):
	Convert __val to _WordT.

From-SVN: r166195
This commit is contained in:
Paolo Carlini 2010-11-02 15:52:09 +00:00 committed by Paolo Carlini
parent 43427f3c58
commit 7350a36115
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-11-02 Paolo Carlini <paolo.carlini@oracle.com>
* include/std/bitset (_Base_bitset<>_Base_bitset(unsigned long long)):
Convert __val to _WordT.
2010-11-01 Benjamin Kosnik <bkoz@redhat.com>
* include/std/chrono: Extend constexpr application.

View File

@ -76,9 +76,9 @@ _GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)
constexpr _Base_bitset() : _M_w({ }) { }
constexpr _Base_bitset(unsigned long long __val)
: _M_w({ __val
: _M_w({ _WordT(__val)
#if __SIZEOF_LONG_LONG__ > __SIZEOF_LONG__
, __val >> _GLIBCXX_BITSET_BITS_PER_WORD
, _WordT(__val >> _GLIBCXX_BITSET_BITS_PER_WORD)
#endif
}) { }
#else