Modify

Opened 4 years ago

Closed 4 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;

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by John Maddock

Status: newassigned

Confirmed, investigating.

comment:2 Changed 4 years ago by John Maddock

Resolution: fixed
Status: assignedclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain John Maddock.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.