This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
ProXy
Op
Posts: 126 Joined: Sun Aug 11, 2002 3:09 pm
Post
by ProXy » Sat Mar 01, 2003 10:33 pm
I just wanted to solve this simple calculation: 16777216 * 253
Whenever I try to do this with expr I get a negative value. It seems to be an overflow. How could I calc this two numbers?
[03:23:10] <@ProXy> !tcl expr 16777216 * 253
[03:23:10] <@Hack|The|Planet> result: -50331648 - clicks: 124
stdragon
Owner
Posts: 959 Joined: Sun Sep 23, 2001 8:00 pm
Contact:
Post
by stdragon » Sun Mar 02, 2003 2:11 am
Hi, please tell me you don't have a !tcl public command. heh.
To solve your problem, try "expr 1.0 * 16777216 * 253".
ProXy
Op
Posts: 126 Joined: Sun Aug 11, 2002 3:09 pm
Post
by ProXy » Sun Mar 02, 2003 6:55 am
Well i have a public !tcl script...but bound to m|m
ppslim
Revered One
Posts: 3914 Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England
Post
by ppslim » Sun Mar 02, 2003 6:58 am
Binding to m|m in situations of public scripts with EXPR, is pointless.
Any1 with access to the script, has as much power as a global owner, that has been added to the config file $owner setting.
Yes, it's that insecure.