From 6e80c1cde193b767d63d2cc30ebd71d65512e061 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 5 Sep 2000 16:33:32 -0300 Subject: new version for API --- lstrlib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstrlib.c') diff --git a/lstrlib.c b/lstrlib.c index 827a59ff..6cdd87da 100644 --- a/lstrlib.c +++ b/lstrlib.c @@ -1,5 +1,5 @@ /* -** $Id: lstrlib.c,v 1.49 2000/08/31 13:30:22 roberto Exp roberto $ +** $Id: lstrlib.c,v 1.50 2000/08/31 20:23:40 roberto Exp roberto $ ** Standard library for string operations and pattern-matching ** See Copyright Notice in lua.h */ @@ -469,7 +469,7 @@ static void add_s (lua_State *L, struct Capture *cap) { size_t oldbuff; int n; const char *s; - lua_pushobject(L, 3); + lua_pushvalue(L, 3); n = push_captures(L, cap); /* function may use buffer, so save it and create a new one */ oldbuff = luaL_newbuffer(L, 0); -- cgit v1.2.3-55-g6feb