diff options
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 1.117 2002/04/24 20:07:46 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 1.118 2002/05/01 20:40:42 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -144,7 +144,7 @@ static char *buildop (Proto *p, int pc, char *buff) { | |||
144 | Instruction i = p->code[pc]; | 144 | Instruction i = p->code[pc]; |
145 | OpCode o = GET_OPCODE(i); | 145 | OpCode o = GET_OPCODE(i); |
146 | const char *name = luaP_opnames[o]; | 146 | const char *name = luaP_opnames[o]; |
147 | int line = p->lineinfo[pc]; | 147 | int line = getline(p, pc); |
148 | sprintf(buff, "(%4d) %4d - ", line, pc); | 148 | sprintf(buff, "(%4d) %4d - ", line, pc); |
149 | switch (getOpMode(o)) { | 149 | switch (getOpMode(o)) { |
150 | case iABC: | 150 | case iABC: |