aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/ltests.c b/ltests.c
index 677f7c8d..233775aa 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 1.30 2000/08/04 19:38:35 roberto Exp roberto $ 2** $Id: ltests.c,v 1.31 2000/08/08 18:26:05 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*/
@@ -69,11 +69,7 @@ static int pushop (Proto *p, int pc) {
69 Instruction i = p->code[pc]; 69 Instruction i = p->code[pc];
70 OpCode o = GET_OPCODE(i); 70 OpCode o = GET_OPCODE(i);
71 const char *name = instrname[o]; 71 const char *name = instrname[o];
72 int *lineinfo = p->lineinfo; 72 sprintf(buff, "%5d - ", luaG_getline(p->lineinfo, pc, 1, NULL));
73 if (lineinfo)
74 sprintf(buff, "%5d - ", luaG_getline(lineinfo, pc, 1, NULL));
75 else
76 strcpy(buff, " ");
77 switch ((enum Mode)luaK_opproperties[o].mode) { 73 switch ((enum Mode)luaK_opproperties[o].mode) {
78 case iO: 74 case iO:
79 sprintf(buff+8, "%s", name); 75 sprintf(buff+8, "%s", name);