diff options
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.161 2006/06/23 16:09:15 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.162 2006/09/11 14:07:24 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -199,7 +199,7 @@ static int loadline (lua_State *L) { | |||
199 | if (!pushline(L, 1)) | 199 | if (!pushline(L, 1)) |
200 | return -1; /* no input */ | 200 | return -1; /* no input */ |
201 | for (;;) { /* repeat until gets a complete line */ | 201 | for (;;) { /* repeat until gets a complete line */ |
202 | status = luaL_loadbuffer(L, lua_tostring(L, 1), lua_strlen(L, 1), "=stdin"); | 202 | status = luaL_loadbuffer(L, lua_tostring(L, 1), lua_objlen(L, 1), "=stdin"); |
203 | if (!incomplete(L, status)) break; /* cannot try to add lines? */ | 203 | if (!incomplete(L, status)) break; /* cannot try to add lines? */ |
204 | if (!pushline(L, 0)) /* no more input? */ | 204 | if (!pushline(L, 0)) /* no more input? */ |
205 | return -1; | 205 | return -1; |