#3897 closed Bug (Duplicate)

incorrect arithmatic with Hex notation

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


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

The problem occurs in, 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 Changed 22 months ago by Jpm

  • Resolution set to Duplicate
  • Status changed from new to closed

fixed with #3876 for

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

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

Note: See TracTickets for help on using tickets.