lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 13-Nov-17 19:40, KHMan wrote:
Hi all,

-- print biggest 8 integers on Lua 5.3.4
for i = 0x7FFFFFFFFFFFFFF8,0x7FFFFFFFFFFFFFFF do
   print(i)
end

All of you got 8 numbers? Yeah, I'm sure Lua 5.3.4 works fine. Nothing to see here.

Looks like it increments i and then tests if i > 0x7FFFFFFFFFFFFFFF. Can't you just be happy with 0x7FFFFFFFFFFFFFFE? :-)

--
  Enrico