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: johnmaddock
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 johnmaddock

  • Status changed from new to assigned

Confirmed, investigating.

comment:2 Changed 4 years ago by johnmaddock

  • Resolution set to fixed
  • Status changed from assigned to closed

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

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain johnmaddock.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.