From f01c12c8917ab2ac9ef6a491374e06ac0611ab92 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 25 Jun 2015 11:00:01 -0300 Subject: [PATCH] detail (cast to avoid mixing types in conditional expression) --- lvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lvm.c b/lvm.c index c4d64686..e51e7f13 100644 --- 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 */