diff options
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 1.95 2000/12/22 16:57:13 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 1.96 2000/12/22 17:32: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 | */ |
| @@ -327,7 +327,7 @@ static int io_read (lua_State *L) { | |||
| 327 | if (firstarg > lastarg) { /* no arguments? */ | 327 | if (firstarg > lastarg) { /* no arguments? */ |
| 328 | lua_settop(L, 0); /* erase upvalue and other eventual garbage */ | 328 | lua_settop(L, 0); /* erase upvalue and other eventual garbage */ |
| 329 | firstarg = lastarg = 1; /* correct indices */ | 329 | firstarg = lastarg = 1; /* correct indices */ |
| 330 | lua_pushstring(L, "*l"); /* push default argument */ | 330 | lua_pushliteral(L, "*l"); /* push default argument */ |
| 331 | } | 331 | } |
| 332 | else /* ensure stack space for all results and for auxlib's buffer */ | 332 | else /* ensure stack space for all results and for auxlib's buffer */ |
| 333 | luaL_checkstack(L, lastarg-firstarg+1+LUA_MINSTACK, "too many arguments"); | 333 | luaL_checkstack(L, lastarg-firstarg+1+LUA_MINSTACK, "too many arguments"); |
