Modify

Ticket #8741 (closed Bugs: fixed)

Opened 10 months ago

Last modified 10 months ago

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

Change History

comment:1 Changed 10 months ago by johnmaddock

  • Status changed from new to assigned

Confirmed, investigating.

comment:2 Changed 10 months ago by johnmaddock

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

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

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
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.