mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
comment
This commit is contained in:
parent
0a850e641d
commit
67c5de9283
1 changed files with 2 additions and 2 deletions
4
liolib.c
4
liolib.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: liolib.c,v 2.113 2013/05/14 15:57:43 roberto Exp roberto $
|
||||
** $Id: liolib.c,v 2.114 2013/06/07 19:01:35 roberto Exp roberto $
|
||||
** Standard I/O (and system) library
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -375,7 +375,7 @@ static int read_number (lua_State *L, FILE *f) {
|
|||
|
||||
static int test_eof (lua_State *L, FILE *f) {
|
||||
int c = getc(f);
|
||||
ungetc(c, f);
|
||||
ungetc(c, f); /* no-op when c == EOF */
|
||||
lua_pushlstring(L, NULL, 0);
|
||||
return (c != EOF);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue