﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3876	Hex Number Arithmetic is incorrect	Zvend	Jon	"The hex arithmetic in the newest version broke compared to previous versions.

{{{#!autoit
;~ AutoIt v3.3.14.5
Const $OFFSET = -0x46
Local $pSomePointer = Ptr(0x3100000 + $OFFSET)
ConsoleWrite(""Pointer is: "" & $pSomePointer & @CRLF)
}}}
Output:
{{{#!txt
Pointer is: 0x030FFFBA (Correct hex arithmetic)
}}}

{{{#!autoit
;~ AutoIt v3.3.16.0
Const $OFFSET = -0x46
Local $pSomePointer = Ptr(0x3100000 + $OFFSET)
ConsoleWrite(""Pointer is: "" & $pSomePointer & @CRLF)
}}}
Output:
{{{#!txt
Pointer is: 0x03100046 (Incorrect hex arithmetic)
}}}


For more information see: [https://www.autoitscript.com/forum/topic/207897-hex-number-arithmetic-is-incorrect-on-v33160/]

"	Bug	closed	3.3.16.1	AutoIt	3.3.16.0	None	Fixed	Hex Number Arithmetic	Melba23
