Source-Changes-D archive

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

Re: CVS commit: src



> 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


Home | Main Index | Thread Index | Old Index