From f0b3cd1d6f35ba34091450d5e3057269114a17b6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 31 Aug 2000 17:23:40 -0300 Subject: new API functions `pop', `insert', and `move' --- lstrlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstrlib.c') diff --git a/lstrlib.c b/lstrlib.c index 86cb90ed..827a59ff 100644 --- a/lstrlib.c +++ b/lstrlib.c @@ -1,5 +1,5 @@ /* -** $Id: lstrlib.c,v 1.48 2000/08/29 20:43:28 roberto Exp roberto $ +** $Id: lstrlib.c,v 1.49 2000/08/31 13:30:22 roberto Exp roberto $ ** Standard library for string operations and pattern-matching ** See Copyright Notice in lua.h */ @@ -481,7 +481,7 @@ static void add_s (lua_State *L, struct Capture *cap) { s = lua_tostring(L, -1); if (s) addnchar(L, lua_tostring(L, -1), lua_strlen(L, -1)); - lua_settop(L, -1); /* pop function result */ + lua_pop(L, 1); /* pop function result */ } } -- cgit v1.2.3-55-g6feb