[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: table.insert and negative numbers
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 9 Apr 2008 13:06:01 -0300
> The 5.1 LRM says that 'Exponentiation works for any exponent', but
> doesn't mention this boundary condition.
There is no boundary condition for exponentiation. The problem is that
table.insert converts the index to an integer and then 2^32 overflows
32-bit integers. This glitch in table.insert (and other functions that
convert doubles to ints) is known and will be fixed.