From 01b00cc29261579600ce414b470c339510ac49d5 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 30 Nov 2000 16:50:47 -0200 Subject: better control over extensions of char/short to int --- ldebug.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index b3d2dfac..72344181 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 1.49 2000/10/27 11:39:52 roberto Exp roberto $ +** $Id: ldebug.c,v 1.50 2000/10/30 12:38:50 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -371,7 +371,7 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int stackpos) { OpCode op = GET_OPCODE(i); LUA_ASSERT(luaK_opproperties[op].push != VD, "invalid opcode for default"); - top -= luaK_opproperties[op].pop; + top -= (int)luaK_opproperties[op].pop; LUA_ASSERT(top >= 0, "wrong stack"); top = pushpc(stack, pc, top, luaK_opproperties[op].push); } -- cgit v1.2.3-55-g6feb