summaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-04-19 13:22:13 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-04-19 13:22:13 -0300
commit4758113043b6c362a0fdce77715c711332d909dc (patch)
treedeea8a795161332bb1579f201f8a7eb5e4b102b9 /ldebug.c
parenta4e644add264b6bac3171a03aa6febcf61e89ae6 (diff)
downloadlua-github-4758113043b6c362a0fdce77715c711332d909dc.tar.gz
change in opcode OP_LOADNIL: B is used as a counter instead of a
register. (Avoids an assignment to R(B), not present in any other instruction.)
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ldebug.c b/ldebug.c
index 65b79090..1d0be89e 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
/*
-** $Id: ldebug.c,v 2.78 2011/04/18 15:02:37 roberto Exp roberto $
+** $Id: ldebug.c,v 2.79 2011/04/18 19:49:13 roberto Exp roberto $
** Debug Interface
** See Copyright Notice in lua.h
*/
@@ -355,8 +355,8 @@ static const char *getobjname (lua_State *L, CallInfo *ci, int reg,
break;
}
case OP_LOADNIL: {
- int b = GETARG_B(i); /* move from 'b' to 'a' */
- if (a <= reg && reg <= b) /* set registers from 'a' to 'b' */
+ int b = GETARG_B(i);
+ if (a <= reg && reg <= a + b) /* set registers from 'a' to 'a+b' */
what = NULL;
break;
}