Modify

Opened 12 years ago

Closed 12 years ago

#2691 closed Bug (No Bug)

Bitshift is returning incorect results

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: 3.3.8.1 Severity: None
Keywords: BitShift Cc:

Description

BitShift(3442917988, 16) is returning -13002 when it should be returning 52534.

Incorrect results tested and confirmed in AutoIt v3.3.8.1, v3.3.10.2, and Autoit v3.3.11.3 (Beta).

Attachments (0)

Change History (2)

comment:1 by jchd18, 12 years ago

Incorrect reading of the help file.
"Bit operations are performed as 32-bit integers"
3442917988 is in fact the 32-bit integer -852049308.

comment:2 by Matt Diesel, 12 years ago

Resolution: No Bug
Status: newclosed

Jchd is correct.

Of course if you want to get 52534 then you can just change it to Int($number / 2^$bits)

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.