[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Possible bug in lua_next() ?
- From: Pedro Miller Rabinovitch <pedro@...>
- Date: Wed, 19 Dec 2001 09:58:12 -0200
Roberto,
I'm sorry to say that didn't cut it... :-( I've checked my lua distro (most recent tarball from www.tecgraf.puc-rio.br/lua/work) and it already includes the patch below. I actually ran the following:
wget http://www.tecgraf.puc-rio.br/lua/work/lua-4.1-work.tar.gz ; tar zxvf lua-4.1-work.tar.gz ; cd lua-4.1-work ; make ; bin/lua ../for_test.lua
and got the wrong results. I'll try and debug it later on -- it's pretty weird that it only seems to happen in my PPC box. :(
Regards,
Pedro.
On Tue, 18 Dec 2001 15:50:50 -0600 (CST)
Roberto Ierusalimschy <rieru@delirius.cs.uiuc.edu> wrote:
> This bug was already reported in the list. From message
> Pine.SOL.4.33.0111121005220.12041-100000@smartius.cs.uiuc.edu:
> >
> > ltable.c:99 (luaH_index)
> >
> > if (0 <= i && i < t->sizearray) { /* is `key' inside array part? */
> > < return i; /* yes; that's the index */
> > ---
> > > return i-1; /* yes; that's the index (corrected to C) */
> > }
--
Pedro Miller Rabinovitch
Diretoria de Tecnologia
Cipher Technology
http://www.ciphertech.com.br
______
"Segurança em TI - uma especialidade Cipher Technology"