aboutsummaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-11-19 17:16:22 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-11-19 17:16:22 -0200
commitd103312661d4d2428516924658154df09b3168a4 (patch)
treedc2318e0bb95abd9776b57ec73f2f9a0c01586e5 /ldo.c
parent2e8f8a18e4ddbb3bebd8e81e276fc37bce02e422 (diff)
downloadlua-d103312661d4d2428516924658154df09b3168a4.tar.gz
lua-d103312661d4d2428516924658154df09b3168a4.tar.bz2
lua-d103312661d4d2428516924658154df09b3168a4.zip
details (typos in comments)
Diffstat (limited to 'ldo.c')
-rw-r--r--ldo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldo.c b/ldo.c
index aabc803c..d12079a1 100644
--- a/ldo.c
+++ b/ldo.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldo.c,v 2.148 2015/11/02 18:48:49 roberto Exp roberto $ 2** $Id: ldo.c,v 2.149 2015/11/13 13:24:26 roberto Exp roberto $
3** Stack and Call structure of Lua 3** Stack and Call structure of Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -409,7 +409,7 @@ static int moveresults (lua_State *L, const TValue *firstResult, StkId res,
409 case 0: break; /* nothing to move */ 409 case 0: break; /* nothing to move */
410 case 1: { /* one result needed */ 410 case 1: { /* one result needed */
411 if (nres == 0) /* no results? */ 411 if (nres == 0) /* no results? */
412 firstResult = luaO_nilobject; /* ajdust with nil */ 412 firstResult = luaO_nilobject; /* adjust with nil */
413 setobjs2s(L, res, firstResult); /* move it to proper place */ 413 setobjs2s(L, res, firstResult); /* move it to proper place */
414 break; 414 break;
415 } 415 }
@@ -442,7 +442,7 @@ static int moveresults (lua_State *L, const TValue *firstResult, StkId res,
442 442
443/* 443/*
444** Finishes a function call: calls hook if necessary, removes CallInfo, 444** Finishes a function call: calls hook if necessary, removes CallInfo,
445** moves corrent number of results to proper place; returns 0 iff call 445** moves current number of results to proper place; returns 0 iff call
446** wanted multiple (variable number of) results. 446** wanted multiple (variable number of) results.
447*/ 447*/
448int luaD_poscall (lua_State *L, CallInfo *ci, StkId firstResult, int nres) { 448int luaD_poscall (lua_State *L, CallInfo *ci, StkId firstResult, int nres) {