 |
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: Sun Aug 28, 2011 2:47 am
[BUG: 3.34Pro] Lua's zs.param and 64 bit ints |
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<func name="inttest" language="Lua" copy="yes">
<value>return zs.param(1)</value>
</func>
</cmud> |
#show @inttest(2147483647) displays 2147483647.
#show @inttest(2147483648) displays -2147483648.
It works fine if you hardcode these values in the function, so I conclude that the bug is in zs.param. |
|
Last edited by Daern on Sun Aug 28, 2011 2:51 am; edited 2 times in total |
|
|
 |
charneus Wizard

Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sun Aug 28, 2011 2:50 am |
Additionally, as I found out, zs.params(1) does work. So it's just with zs.param that does not seem able to support 64-bit.
|
|
|
 |
|
|