lua-users home
lua-l archive

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


Andrew Gorges wrote:

print(bit.band(3, 0xFFFFFFFF))
-- displays 0

What does bit.band( 3, 1 ) result in?

Are we seeing the result of truncation and endianness issues
of what we assume is a 32 bit value that is actually a 64
bit value when compiled?

Sorry if this does not make sense...

Ralph