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.72 2006/01/28 12:59:13 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 2.73 2006/05/08 20:14:16 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 | */ |
| @@ -139,7 +139,7 @@ static int io_gc (lua_State *L) { | |||
| 139 | static int io_tostring (lua_State *L) { | 139 | static int io_tostring (lua_State *L) { |
| 140 | FILE *f = *topfile(L); | 140 | FILE *f = *topfile(L); |
| 141 | if (f == NULL) | 141 | if (f == NULL) |
| 142 | lua_pushstring(L, "file (closed)"); | 142 | lua_pushliteral(L, "file (closed)"); |
| 143 | else | 143 | else |
| 144 | lua_pushfstring(L, "file (%p)", f); | 144 | lua_pushfstring(L, "file (%p)", f); |
| 145 | return 1; | 145 | return 1; |
