> If the Lua int type was 128 bit uint64_t would convert differently. More > correctly even as it would remain unsigned rather than wrapping to signed. > This means code will break as the kernel uses uint64_t.
How would it break? Are you saying that the following code should break? lua_pushnumber(L, INTMAX_MAX); uint64_t x = (uint64_t) lua_tonumber(L, -1); Regards, -- Lourival Vieira Neto