diff options
-rw-r--r-- | bugs | 10 | ||||
-rw-r--r-- | liolib.c | 4 |
2 files changed, 12 insertions, 2 deletions
@@ -198,3 +198,13 @@ Tue Aug 29 15:57:41 EST 2000 | |||
198 | >> gc tag method for nil could call line hook | 198 | >> gc tag method for nil could call line hook |
199 | (by ry; since ?) | 199 | (by ry; since ?) |
200 | 200 | ||
201 | |||
202 | |||
203 | ================================================================= | ||
204 | --- Version 4.0 Beta | ||
205 | |||
206 | ** liolib.c | ||
207 | Fri Sep 22 15:12:37 EST 2000 | ||
208 | >> `read("*w")' should return nil at EOF | ||
209 | (by roberto; since 4.0b) | ||
210 | |||
@@ -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 | ||