diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-01-27 11:28:45 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-01-27 11:28:45 -0200 |
commit | 67c5de928349bfff6ed8b4ae5ed1abe05abcb08e (patch) | |
tree | e30600ba2696d0cd665b56143c6fbd43db6a97bb /liolib.c | |
parent | 0a850e641d90dde8d55c299e0197eb7148072df9 (diff) | |
download | lua-67c5de928349bfff6ed8b4ae5ed1abe05abcb08e.tar.gz lua-67c5de928349bfff6ed8b4ae5ed1abe05abcb08e.tar.bz2 lua-67c5de928349bfff6ed8b4ae5ed1abe05abcb08e.zip |
comment
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 2.113 2013/05/14 15:57:43 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 2.114 2013/06/07 19:01:35 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 | */ |
@@ -375,7 +375,7 @@ static int read_number (lua_State *L, FILE *f) { | |||
375 | 375 | ||
376 | static int test_eof (lua_State *L, FILE *f) { | 376 | static int test_eof (lua_State *L, FILE *f) { |
377 | int c = getc(f); | 377 | int c = getc(f); |
378 | ungetc(c, f); | 378 | ungetc(c, f); /* no-op when c == EOF */ |
379 | lua_pushlstring(L, NULL, 0); | 379 | lua_pushlstring(L, NULL, 0); |
380 | return (c != EOF); | 380 | return (c != EOF); |
381 | } | 381 | } |