aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-01-27 11:28:45 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-01-27 11:28:45 -0200
commit67c5de928349bfff6ed8b4ae5ed1abe05abcb08e (patch)
treee30600ba2696d0cd665b56143c6fbd43db6a97bb /liolib.c
parent0a850e641d90dde8d55c299e0197eb7148072df9 (diff)
downloadlua-67c5de928349bfff6ed8b4ae5ed1abe05abcb08e.tar.gz
lua-67c5de928349bfff6ed8b4ae5ed1abe05abcb08e.tar.bz2
lua-67c5de928349bfff6ed8b4ae5ed1abe05abcb08e.zip
comment
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liolib.c b/liolib.c
index e5831a66..afefc1ec 100644
--- a/liolib.c
+++ b/liolib.c
@@ -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
376static int test_eof (lua_State *L, FILE *f) { 376static 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}