diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-22 15:14:06 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-22 15:14:06 -0300 |
| commit | f9dd50cefc6c1c2c57f24d9985c1cc073d9d7300 (patch) | |
| tree | 9654fc1c21c914f3f9c66b609303434d04504b05 /liolib.c | |
| parent | dbde9f881768666363b3a4297645f3d490e5d1b6 (diff) | |
| download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 | ||
