Opened 9 years ago
Closed 9 years ago
#8741 closed Bugs (fixed)
Can't shift left more than 31 bits with the <<= operator for number/cpp_int_backend.
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | To Be Determined | Component: | multiprecision |
Version: | Boost 1.53.0 | Severity: | Problem |
Keywords: | multiprecision shift | Cc: |
Description
Can't shift left more than 31 bits with the <<= operator for number/cpp_int_backend.
number<cpp_int_backend<90, 90, unsigned_magnitude, unchecked, void>> testNum("0x00BBBBCCCCDDDDEEEEFFFF");
testNum remains unchanged testNum <<= 32;
testNum shifts left one bit. testNum <<= 33;
Change History (2)
comment:1 by , 9 years ago
Status: | new → assigned |
---|
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Confirmed, investigating.