aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ldebug.c b/ldebug.c
index 2fa719ee..4ee1b05f 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.108 2002/04/10 12:11:07 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.109 2002/04/22 14:40:23 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*/
@@ -290,13 +290,13 @@ static Instruction luaG_symbexec (const Proto *pt, int lastpc, int reg) {
290 (c >= MAXSTACK && c-MAXSTACK < pt->sizek)); 290 (c >= MAXSTACK && c-MAXSTACK < pt->sizek));
291 break; 291 break;
292 } 292 }
293 case iABc: { 293 case iABx: {
294 b = GETARG_Bc(i); 294 b = GETARG_Bx(i);
295 if (testOpMode(op, OpModeK)) check(b < pt->sizek); 295 if (testOpMode(op, OpModeK)) check(b < pt->sizek);
296 break; 296 break;
297 } 297 }
298 case iAsBc: { 298 case iAsBx: {
299 b = GETARG_sBc(i); 299 b = GETARG_sBx(i);
300 break; 300 break;
301 } 301 }
302 } 302 }
@@ -421,8 +421,8 @@ static const char *getobjname (lua_State *L, CallInfo *ci, int stackpos,
421 lua_assert(pc != -1); 421 lua_assert(pc != -1);
422 switch (GET_OPCODE(i)) { 422 switch (GET_OPCODE(i)) {
423 case OP_GETGLOBAL: { 423 case OP_GETGLOBAL: {
424 lua_assert(ttype(&p->k[GETARG_Bc(i)]) == LUA_TSTRING); 424 lua_assert(ttype(&p->k[GETARG_Bx(i)]) == LUA_TSTRING);
425 *name = svalue(&p->k[GETARG_Bc(i)]); 425 *name = svalue(&p->k[GETARG_Bx(i)]);
426 return "global"; 426 return "global";
427 } 427 }
428 case OP_MOVE: { 428 case OP_MOVE: {