Changeset 3ae7827 in mainline
- Timestamp:
- 2018-07-05T21:41:25Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1caddc6
- Parents:
- 07eaeea
- git-author:
- Dzejrou <dzejrou@…> (2018-07-03 18:40:07)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:25)
- Location:
- uspace/lib/cpp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/__bits/adt/bitset.hpp
r07eaeea r3ae7827 270 270 { 271 271 // TODO: throw overflow_error if N > bits in ulong 272 return static_cast<unsigned long>(data_[0] & (~0UL));272 return static_cast<unsigned long>(data_[0]); 273 273 } 274 274 -
uspace/lib/cpp/src/__bits/test/bitset.cpp
r07eaeea r3ae7827 92 92 ); 93 93 94 std::bitset<64> b4{0xABCD'DCBA'DEAD'BEEF };94 std::bitset<64> b4{0xABCD'DCBA'DEAD'BEEFULL}; 95 95 test_eq( 96 96 "from hex to number equivalence", 97 b4.to_ulong(), 0xABCD'DCBA'DEAD'BEEF97 b4.to_ulong(), static_cast<unsigned long>(0xABCD'DCBA'DEAD'BEEFULL) 98 98 ); 99 99
Note:
See TracChangeset
for help on using the changeset viewer.