[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: rawget Segmentation Fault
- From: Edgar Toernig <froese@...>
- Date: Sat, 22 Dec 2001 11:42:22 +0100
Roberto Ierusalimschy wrote:
>
> lbaselib.c: 168: function luaB_rawget
> - lua_rawget(L, -2);
> + lua_rawget(L, 1);
>
> lbaselib.c: 172: function luaB_rawset
> - lua_rawset(L, -3);
> + lua_rawset(L, 1);
IMHO the right fix would be:
lbaselib.c: 168: function luaB_rawget
+ lua_settop(L, 2);
lua_rawget(L, -2);
lbaselib.c: 172: function luaB_rawset
+ lua_settop(L, 3);
lua_rawset(L, -3);
Ciao, ET.