[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua_next probles
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 25 Sep 2007 11:23:58 -0300
> I'm using the standard c table parsing code that is described in the lua
> manual. The issue appear to be when lua_next comes to parse the "line2"
> data, "line1" is parsed correctly, with the key set to 1 as is expected, but
> the next iteration causes lua to bomb out. Tracing into lua reveal an
> invalid key error.
You're probably not popping the value in the loop or using lua_tostring
on numerical keys. See http://www.lua.org/manual/5.1/manual.html#lua_next