diff options
| -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.141 2014/11/21 12:17:33 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 2.142 2015/01/02 12:50:28 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 | */ |
| @@ -457,7 +457,7 @@ static int read_number (lua_State *L, FILE *f) { | |||
| 457 | static int test_eof (lua_State *L, FILE *f) { | 457 | static int test_eof (lua_State *L, FILE *f) { |
| 458 | int c = getc(f); | 458 | int c = getc(f); |
| 459 | ungetc(c, f); /* no-op when c == EOF */ | 459 | ungetc(c, f); /* no-op when c == EOF */ |
| 460 | lua_pushlstring(L, NULL, 0); | 460 | lua_pushliteral(L, ""); |
| 461 | return (c != EOF); | 461 | return (c != EOF); |
| 462 | } | 462 | } |
| 463 | 463 | ||
