Modify

Opened 4 years ago

Closed 4 years ago

#3897 closed Bug (Duplicate)

incorrect arithmatic with Hex notation

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

Description

When you try to subtract using hex notation, the values end up being added.

The problem occurs in 3.3.16.0, x32 & x64.
Tested in win10 & win7.

v3.3.14.5 seems to work as expected.

ConsoleWrite(0x04 - 0x02 & @CRLF) ;returns 6
ConsoleWrite(4 - 0x02 & @CRLF) ;returns 6

;these seem to be ok.
ConsoleWrite(0x04 - 2 & @CRLF) ;returns 2
ConsoleWrite(0x04 - Int(0x02) & @CRLF) ;returns 2
ConsoleWrite(0x04 + 0x02 & @CRLF) ;returns 6
ConsoleWrite(0x04 / 0x02 & @CRLF) ;returns 2
ConsoleWrite(0x04 * 0x02 & @CRLF) ;returns 8

Attachments (0)

Change History (1)

comment:1 by J-Paul Mesnage, 4 years ago

Resolution: Duplicate
Status: newclosed

fixed with #3876 for 3.3.16.1

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.