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:
@@ -11,7 +11,7 @@ function myfunc(x)
|
||||
return x*x;
|
||||
end
|
||||
|
||||
print( myfunc(0.1) )
|
||||
print( myfunc(0.25) )
|
||||
|
||||
do
|
||||
local oldMyfunc = myfunc
|
||||
|
||||
Reference in New Issue
Block a user