diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-11-30 16:50:47 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-11-30 16:50:47 -0200 |
commit | 01b00cc29261579600ce414b470c339510ac49d5 (patch) | |
tree | d485971f691e6914b92d52a4ba6976f6f3357a23 /ldebug.c | |
parent | fc7b167ae0a0d65f0050299101e7d177550d7120 (diff) | |
download | lua-01b00cc29261579600ce414b470c339510ac49d5.tar.gz lua-01b00cc29261579600ce414b470c339510ac49d5.tar.bz2 lua-01b00cc29261579600ce414b470c339510ac49d5.zip |
better control over extensions of char/short to int
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 1.49 2000/10/27 11:39:52 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 1.50 2000/10/30 12:38:50 roberto Exp roberto $ |
3 | ** Debug Interface | 3 | ** Debug Interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -371,7 +371,7 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int stackpos) { | |||
371 | OpCode op = GET_OPCODE(i); | 371 | OpCode op = GET_OPCODE(i); |
372 | LUA_ASSERT(luaK_opproperties[op].push != VD, | 372 | LUA_ASSERT(luaK_opproperties[op].push != VD, |
373 | "invalid opcode for default"); | 373 | "invalid opcode for default"); |
374 | top -= luaK_opproperties[op].pop; | 374 | top -= (int)luaK_opproperties[op].pop; |
375 | LUA_ASSERT(top >= 0, "wrong stack"); | 375 | LUA_ASSERT(top >= 0, "wrong stack"); |
376 | top = pushpc(stack, pc, top, luaK_opproperties[op].push); | 376 | top = pushpc(stack, pc, top, luaK_opproperties[op].push); |
377 | } | 377 | } |