lua-users home
lua-l archive

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


You're right, my mistake. Whoops.

On Sun, 5 Jun 2022, 00:22 Luiz Henrique de Figueiredo, <lhf@tecgraf.puc-rio.br> wrote:
> 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