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 1.40 1999/05/14 12:24:04 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 1.41 1999/06/23 13:48:39 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 | */ |
| @@ -89,7 +89,7 @@ static int ishandle (lua_Object f) { | |||
| 89 | 89 | ||
| 90 | 90 | ||
| 91 | static FILE *getfilebyname (char *name) { | 91 | static FILE *getfilebyname (char *name) { |
| 92 | lua_Object f = lua_getglobal(name); | 92 | lua_Object f = lua_rawgetglobal(name); |
| 93 | if (!ishandle(f)) | 93 | if (!ishandle(f)) |
| 94 | luaL_verror("global variable `%.50s' is not a file handle", name); | 94 | luaL_verror("global variable `%.50s' is not a file handle", name); |
| 95 | return lua_getuserdata(f); | 95 | return lua_getuserdata(f); |
