AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

-0x..e parameter kills the function

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Laszlo



Joined: 14 Feb 2005
Posts: 3959
Location: Pittsburgh

PostPosted: Sat Jul 28, 2007 5:36 pm    Post subject: -0x..e parameter kills the function Reply with quote

It is probably an artifact of the scientific floating point form. If a function parameter is a negative hex number, ending with the digit "e", the whole function call disappears.
Code:
f(-0xe)  ; No MsgBox
f(-0x1e) ; No MsgBox
f(-0xfd) ; MsgBox: -0xfd
f(+0xfe) ; MsgBox:  0xfe

f(x) {
   MsgBox %x%
}
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Mon Jul 30, 2007 1:15 pm    Post subject: Reply with quote

Thanks; this will be fixed in the next update. If you need a short-term workaround, you can add a space after the number: e.g. f(-0xe )
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group