Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (139 - 141 of 3866)

Ticket Resolution Summary Owner Reporter
#721 No Bug _Atan2() returns wrong trancexx
Description

It's function from Math.au3 Returns wrong for points located in third quadrant.

#include <Math.au3>
ConsoleWrite(_Atan2(-1, -3) & @CRLF)

The result should be -2.8198420991932 but it's returning 3.46334320798644

Link to one online calculator to verify result: http://ostermiller.org/calc/calculator.html

#723 No Bug Structure problem trancexx
Description

Unexpected behaviour with function DllStructureCreate()when created with pointer and "dword":

ConsoleWrite("Binary data is 0x3378FF453D1133" & @CRLF & @CRLF)

$structure_Binary_1 = DllStructCreate("byte[7]")
DllStructSetData($structure_Binary_1, 1, "0x3378FF453D1133"); that is 0x3378 and 0xFF453D11, last byte 0x33 is just for testing 

; Testing on "short;dword"
$struct_1 =  DllStructCreate("short;dword", DllStructGetPtr($structure_Binary_1))
ConsoleWrite("Before align:" & @CRLF)
ConsoleWrite(Binary(DllStructGetData($struct_1, 1)) & " <-- Binary(short) - ok" & @CRLF)
ConsoleWrite(Binary(DllStructGetData($struct_1, 2)) & " <-- Binary(dword) - 0xFF is missing and 0x33 is there" & @CRLF)

ConsoleWrite(@CRLF)


; New structure is "short;dword" with keyword align
$structure_Binary_2 = DllStructCreate("byte[7]")
DllStructSetData($structure_Binary_2, 1, "0x3378FF453D1133")

$struct_2 =  DllStructCreate("align 1;short;dword", DllStructGetPtr($structure_Binary_2)) ; or "align 2"
ConsoleWrite("After:" & @CRLF)
ConsoleWrite(Binary(DllStructGetData($struct_2, 1)) & " <-- Binary(short)" & @CRLF)
ConsoleWrite(Binary(DllStructGetData($struct_2, 2)) & " <-- Binary(dword), this appears ok" & @CRLF)


ConsoleWrite(@CRLF)


; Testing on "dword;short"
$structure_Binary_3 = DllStructCreate("byte[7]")
DllStructSetData($structure_Binary_3, 1, "0x3378FF453D1133")

$struct_3 =  DllStructCreate("dword;short", DllStructGetPtr($structure_Binary_3)) 
ConsoleWrite("Reoganized (no align):" & @CRLF)
ConsoleWrite(Binary(DllStructGetData($struct_3, 1)) & " <-- Binary(dword) - ok" & @CRLF)
ConsoleWrite(Binary(DllStructGetData($struct_3, 2)) & " <-- Binary(short) - ok" & @CRLF)

Thread on forum: http://www.autoitscript.com/forum/index.php?showtopic=85213

#760 No Bug Regular expression; NUL character in \x## trancexx
Description

It's about null character in \x## pattern. Not working for that one. Example with StringRegExpReplace()

$sString = "abc" & Chr(1) & "def" & Chr(1) & "ghi"

$sNewString = StringRegExpReplace($sString, "\x1", "")

ConsoleWrite("1. " & $sNewString & @CRLF) ; this is as expected



$sString = "abc" & Chr(0) & "def" & Chr(0) & "ghi"

$sNewString = StringRegExpReplace($sString, "\x0", "") 

ConsoleWrite("2. " & $sNewString & @CRLF) ; this is not

Help file suggests that it should work for any ascii character (hex code). I guess this has nothing to do with bugs, it's more like undocumented feature.

Note: See TracQuery for help on using queries.