lua-users home
lua-l archive

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


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.