aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-11-13 11:24:26 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-11-13 11:24:26 -0200
commit9a5d6aedb773a61153b07a0939d651efe8ee1753 (patch)
treed57498c48a8b68b3843c6f89e9ce963589cb8114 /lvm.c
parent89e3a843442679252773a29114c8552e3f59777d (diff)
downloadlua-9a5d6aedb773a61153b07a0939d651efe8ee1753.tar.gz
lua-9a5d6aedb773a61153b07a0939d651efe8ee1753.tar.bz2
lua-9a5d6aedb773a61153b07a0939d651efe8ee1753.zip
trying to optimize a little 'luaD_poscall'
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lvm.c b/lvm.c
index ecf00c39..43485804 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 2.260 2015/11/02 18:48:07 roberto Exp roberto $ 2** $Id: lvm.c,v 2.261 2015/11/12 18:08:58 roberto Exp roberto $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -1157,7 +1157,7 @@ void luaV_execute (lua_State *L) {
1157 vmcase(OP_RETURN) { 1157 vmcase(OP_RETURN) {
1158 int b = GETARG_B(i); 1158 int b = GETARG_B(i);
1159 if (cl->p->sizep > 0) luaF_close(L, base); 1159 if (cl->p->sizep > 0) luaF_close(L, base);
1160 b = luaD_poscall(L, ra, (b != 0 ? b - 1 : cast_int(L->top - ra))); 1160 b = luaD_poscall(L, ci, ra, (b != 0 ? b - 1 : cast_int(L->top - ra)));
1161 if (ci->callstatus & CIST_FRESH) /* local 'ci' still from callee */ 1161 if (ci->callstatus & CIST_FRESH) /* local 'ci' still from callee */
1162 return; /* external invocation: return */ 1162 return; /* external invocation: return */
1163 else { /* invocation via reentry: continue execution */ 1163 else { /* invocation via reentry: continue execution */