diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-02-07 15:25:36 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-02-07 15:25:36 -0200 |
commit | 86a4de256e88844e34535901d25923aa851d963e (patch) | |
tree | 99f8cd31a5199f4c0a20dfb5c290f361887f90c5 /lauxlib.c | |
parent | 53aaee6ee65bee24e3ce05c35fcdd002b4ef0658 (diff) | |
download | lua-86a4de256e88844e34535901d25923aa851d963e.tar.gz lua-86a4de256e88844e34535901d25923aa851d963e.tar.bz2 lua-86a4de256e88844e34535901d25923aa851d963e.zip |
no more lua_[gs]etstr
Diffstat (limited to 'lauxlib.c')
-rw-r--r-- | lauxlib.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -240,8 +240,9 @@ LUALIB_API int luaL_ref (lua_State *L, int t) { | |||
240 | } | 240 | } |
241 | else { /* no free elements */ | 241 | else { /* no free elements */ |
242 | ref = lua_getn(L, t) + 1; /* use next `n' */ | 242 | ref = lua_getn(L, t) + 1; /* use next `n' */ |
243 | lua_pushliteral(L, "n"); | ||
243 | lua_pushnumber(L, ref); | 244 | lua_pushnumber(L, ref); |
244 | lua_setstr(L, t, "n"); /* n = n+1 */ | 245 | lua_rawset(L, t); /* n = n+1 */ |
245 | } | 246 | } |
246 | lua_rawseti(L, t, ref); | 247 | lua_rawseti(L, t, ref); |
247 | return ref; | 248 | return ref; |