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: neal.p.smith@… 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 John Maddock, 9 years ago

Status: newassigned

Confirmed, investigating.

comment:2 by John Maddock, 9 years ago

Resolution: fixed
Status: assignedclosed

(In [84925]) Fix left shift operator. Fixes #8741.

Note: See TracTickets for help on using tickets.