Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: 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
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: 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.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net