aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-31 11:10:24 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-31 11:10:24 -0200
commit67c1afff5917b118f3be818dd0df7448d19de877 (patch)
tree10b60153e85947af9a1791148b145e0dca82775d /liolib.c
parent03770ecfc91718f7a208995adb1f9fd5d8e0c85e (diff)
downloadlua-67c1afff5917b118f3be818dd0df7448d19de877.tar.gz
lua-67c1afff5917b118f3be818dd0df7448d19de877.tar.bz2
lua-67c1afff5917b118f3be818dd0df7448d19de877.zip
lua_settagmethod does not return old tag method
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/liolib.c b/liolib.c
index 6693df33..4ef4c439 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 1.89 2000/10/26 12:53:55 roberto Exp roberto $ 2** $Id: liolib.c,v 1.90 2000/10/27 16:15:53 roberto Exp roberto $
3** Standard I/O (and system) library 3** Standard I/O (and system) library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -708,7 +708,6 @@ static void openwithcontrol (lua_State *L) {
708 /* close files when collected */ 708 /* close files when collected */
709 lua_pushcclosure(L, file_collect, 1); /* pops `ctrl' from stack */ 709 lua_pushcclosure(L, file_collect, 1); /* pops `ctrl' from stack */
710 lua_settagmethod(L, ctrl->iotag, "gc"); 710 lua_settagmethod(L, ctrl->iotag, "gc");
711 lua_pop(L, 1); /* remove tag method returned by previous call */
712} 711}
713 712
714 713