diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-06-22 13:12:59 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-06-22 13:12:59 -0300 |
commit | ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f (patch) | |
tree | fc2ac2bea24400ec815be94ba916b41f6f8cd104 /liolib.c | |
parent | 98194db4295726069137d13b8d24fca8cbf892b6 (diff) | |
download | lua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.tar.gz lua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.tar.bz2 lua-ee41bc03ab0af1b1d0c4a90e172b05cda3dac38f.zip |
details
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; |