diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-06 16:09:08 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-06 16:09:08 -0300 |
commit | d7d44b038dcdbd4b8f8261c6a9a02ec05c0ea0ec (patch) | |
tree | 88086ccc3b0aa5aad77041ed49ef66c7214f7811 /liolib.c | |
parent | 297512b34c2d16bb7827ef61bd7b14467bfa4ecf (diff) | |
download | lua-d7d44b038dcdbd4b8f8261c6a9a02ec05c0ea0ec.tar.gz lua-d7d44b038dcdbd4b8f8261c6a9a02ec05c0ea0ec.tar.bz2 lua-d7d44b038dcdbd4b8f8261c6a9a02ec05c0ea0ec.zip |
detail (use 'lua_pushliteral' to push an empty string)
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.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 | ||