From 9cd36059ad6f3f6750b8cff54c305ae347c6caca Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 10 Dec 2001 20:09:51 -0200 Subject: new API functions lua_getstr/lua_setstr --- lbaselib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lbaselib.c') diff --git a/lbaselib.c b/lbaselib.c index adb9af0c..bb66ab32 100644 --- a/lbaselib.c +++ b/lbaselib.c @@ -20,9 +20,8 @@ static void aux_setn (lua_State *L, int t, int n) { - lua_pushliteral(L, "n"); lua_pushnumber(L, n); - lua_settable(L, t); + lua_setstr(L, t, "n"); } -- cgit v1.2.3-55-g6feb