avoid use of ULL for compatibility with Lua