While loading chunks, check if double values can be represented as integers,

and load them as LIntegers instead of LDoubles if so. Also change test2 so that
it does not fail because of the rounding problem. With these changes, 4 out of
7 test cases in LuaJTest now pass.
This commit is contained in:
Ian Farmer
2007-07-09 01:31:31 +00:00
parent 241edfbf37
commit 62022d5881
4 changed files with 115 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ function myfunc(x)
return x*x;
end
print( myfunc(0.1) )
print( myfunc(0.25) )
do
local oldMyfunc = myfunc

Binary file not shown.