diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-01 13:44:51 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-01 13:44:51 -0200 |
| commit | e0bece77d6ee926de4ab3108b0fa84f03ff759d4 (patch) | |
| tree | 2fbed410ce5f1b5dce9d3aa74cfe24ebfb7bd861 /ldo.c | |
| parent | d0356d5f15aea1f9934bd9e223bcb12a865a8608 (diff) | |
| download | lua-github-e0bece77d6ee926de4ab3108b0fa84f03ff759d4.tar.gz | |
detail
Diffstat (limited to 'ldo.c')
| -rw-r--r-- | ldo.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* -** $Id: ldo.c,v 2.175 2017/11/23 18:29:41 roberto Exp roberto $ +** $Id: ldo.c,v 2.176 2017/11/29 13:02:17 roberto Exp roberto $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ @@ -346,8 +346,8 @@ static void moveresults (lua_State *L, StkId firstResult, StkId res, int i; for (i = 0; i < nres; i++) /* move all results to correct place */ setobjs2s(L, res + i, firstResult + i); - L->top = res + nres; - return; + wanted = nres; /* it wanted what it had */ + break; } default: { int i; |
