aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liolib.c b/liolib.c
index 48687bf8..78ddb806 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 2.89 2010/07/02 11:38:13 roberto Exp roberto $ 2** $Id: liolib.c,v 2.90 2010/07/25 15:18:19 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*/
@@ -583,7 +583,7 @@ static void createmeta (lua_State *L) {
583 luaL_newmetatable(L, LUA_FILEHANDLE); /* create metatable for file handles */ 583 luaL_newmetatable(L, LUA_FILEHANDLE); /* create metatable for file handles */
584 lua_pushvalue(L, -1); /* push metatable */ 584 lua_pushvalue(L, -1); /* push metatable */
585 lua_setfield(L, -2, "__index"); /* metatable.__index = metatable */ 585 lua_setfield(L, -2, "__index"); /* metatable.__index = metatable */
586 luaL_register(L, NULL, flib); /* add file methods to new metatable */ 586 luaL_setfuncs(L, flib, 0); /* add file methods to new metatable */
587 lua_pop(L, 1); /* pop new metatable */ 587 lua_pop(L, 1); /* pop new metatable */
588} 588}
589 589