diff options
Diffstat (limited to 'liolib.c')
-rw-r--r-- | liolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 2.12 2002/06/26 16:37:13 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 2.13 2002/07/12 18:54: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 | */ |
@@ -67,7 +67,7 @@ static FILE *tofile (lua_State *L, int findex) { | |||
67 | 67 | ||
68 | 68 | ||
69 | static void newfile (lua_State *L, FILE *f) { | 69 | static void newfile (lua_State *L, FILE *f) { |
70 | lua_newpointerbox(L, f); | 70 | lua_boxpointer(L, f); |
71 | lua_pushliteral(L, FILEHANDLE); | 71 | lua_pushliteral(L, FILEHANDLE); |
72 | lua_rawget(L, LUA_REGISTRYINDEX); | 72 | lua_rawget(L, LUA_REGISTRYINDEX); |
73 | lua_setmetatable(L, -2); | 73 | lua_setmetatable(L, -2); |