From 801aaf37b14a1fad5bb49c9a4200d25680152471 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 25 Mar 2002 14:47:14 -0300 Subject: simpler implementation for line information --- ltests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 72487ad8..097f7d1b 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 1.112 2002/03/14 18:01:52 roberto Exp roberto $ +** $Id: ltests.c,v 1.113 2002/03/20 12:54:08 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -144,7 +144,7 @@ static char *buildop (Proto *p, int pc, char *buff) { Instruction i = p->code[pc]; OpCode o = GET_OPCODE(i); const char *name = luaP_opnames[o]; - int line = luaG_getline(p->lineinfo, pc, 1, NULL); + int line = p->lineinfo[pc]; sprintf(buff, "(%4d) %4d - ", line, pc); switch (getOpMode(o)) { case iABC: -- cgit v1.2.3-55-g6feb