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 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 | ||
