aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-22 15:14:06 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-22 15:14:06 -0300
commitf9dd50cefc6c1c2c57f24d9985c1cc073d9d7300 (patch)
tree9654fc1c21c914f3f9c66b609303434d04504b05 /liolib.c
parentdbde9f881768666363b3a4297645f3d490e5d1b6 (diff)
downloadlua-f9dd50cefc6c1c2c57f24d9985c1cc073d9d7300.tar.gz
lua-f9dd50cefc6c1c2c57f24d9985c1cc073d9d7300.tar.bz2
lua-f9dd50cefc6c1c2c57f24d9985c1cc073d9d7300.zip
`read("*w")' should return nil at EOF
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 6ba4f527..2b4e2f0e 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 1.83 2000/09/13 20:12:14 roberto Exp roberto $ 2** $Id: liolib.c,v 1.84 2000/09/14 14:09:31 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*/
@@ -324,7 +324,7 @@ static int read_word (lua_State *L, FILE *f) {
324 } 324 }
325 ungetc(c, f); 325 ungetc(c, f);
326 luaL_pushresult(&b); /* close buffer */ 326 luaL_pushresult(&b); /* close buffer */
327 return (lua_strlen(L, 1) > 0); 327 return (lua_strlen(L, -1) > 0);
328} 328}
329 329
330 330