lua

A copy of the Lua development repository
Log | Files | Refs | README

commit f01c12c8917ab2ac9ef6a491374e06ac0611ab92
parent 5aabb7a89172b74097faa8f34a6a6520d839bde6
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu, 25 Jun 2015 10:59:36 -0300

detail (cast to avoid mixing types in conditional expression)

Diffstat:
Mlvm.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lvm.c b/lvm.c @@ -1,5 +1,5 @@ /* -** $Id: lvm.c,v 2.244 2015/06/02 19:11:24 roberto Exp roberto $ +** $Id: lvm.c,v 2.245 2015/06/09 15:53:35 roberto Exp roberto $ ** Lua virtual machine ** See Copyright Notice in lua.h */ @@ -1125,7 +1125,7 @@ void luaV_execute (lua_State *L) { vmcase(OP_RETURN) { int b = GETARG_B(i); if (cl->p->sizep > 0) luaF_close(L, base); - b = luaD_poscall(L, ra, (b != 0 ? b - 1 : L->top - ra)); + b = luaD_poscall(L, ra, (b != 0 ? b - 1 : cast_int(L->top - ra))); if (!(ci->callstatus & CIST_REENTRY)) /* 'ci' still the called one */ return; /* external invocation: return */ else { /* invocation via reentry: continue execution */