lua-users home
lua-l archive

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


> I fixed a bug I found with the 'l_str2int' function that caused an integer overflow when parsing hex numbers.

It's not a bug. The manual says "if the value overflows, it wraps
around to fit into a valid integer."
https://www.lua.org/manual/5.4/manual.html#3.1