lua-users home
lua-l archive

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



So string.unpack("I8", "\255\255\255\255\255\255\255\255")
should be an unsigned integer with value 18446744073709551615.

The problem is not in string.unpack, but how the result is printed.

> string.format("%u", string.unpack("I8", "\255\255\255\255\255\255\255\255"))

18446744073709551615


e