mirror of https://github.com/rusefi/lua.git
small bug (masked by wrong entry for OP_TEST in opcodes.c)
This commit is contained in:
parent
05ca63642b
commit
a4e644add2
6
ldebug.c
6
ldebug.c
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: ldebug.c,v 2.77 2011/04/07 18:14:12 roberto Exp roberto $
|
** $Id: ldebug.c,v 2.78 2011/04/18 15:02:37 roberto Exp roberto $
|
||||||
** Debug Interface
|
** Debug Interface
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -385,6 +385,10 @@ static const char *getobjname (lua_State *L, CallInfo *ci, int reg,
|
||||||
pc += b; /* do the jump */
|
pc += b; /* do the jump */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case OP_TEST: {
|
||||||
|
if (reg == a) what = NULL; /* jumped code can change 'a' */
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
if (testAMode(op) && reg == a) what = NULL;
|
if (testAMode(op) && reg == a) what = NULL;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue