Improve compatibility with lua 5.2.

This commit is contained in:
James Roseborough
2012-09-20 05:15:31 +00:00
parent 406068190b
commit 4d8877e56b
7 changed files with 69 additions and 41 deletions

View File

@@ -228,7 +228,6 @@ local x = -1
local mz, z = 0/x, 0 -- minus zero, zero
print('mz, z', mz, z)
print('mz == z', mz == z)
print('1/mz < 0 and 0 < 1/z', 1/mz < 0 and 0 < 1/z)
local a = {[mz] = 1}
print('a[z] == 1 and a[mz] == 1', a[z] == 1 and a[mz] == 1)
-- string with same binary representation as 0.0 (may create problems