From 67c1afff5917b118f3be818dd0df7448d19de877 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 31 Oct 2000 11:10:24 -0200 Subject: lua_settagmethod does not return old tag method --- liolib.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'liolib.c') diff --git a/liolib.c b/liolib.c index 6693df33..4ef4c439 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 1.89 2000/10/26 12:53:55 roberto Exp roberto $ +** $Id: liolib.c,v 1.90 2000/10/27 16:15:53 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -708,7 +708,6 @@ static void openwithcontrol (lua_State *L) { /* close files when collected */ lua_pushcclosure(L, file_collect, 1); /* pops `ctrl' from stack */ lua_settagmethod(L, ctrl->iotag, "gc"); - lua_pop(L, 1); /* remove tag method returned by previous call */ } -- cgit v1.2.3-55-g6feb