summaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldebug.c b/ldebug.c
index 4ee1b05f..8cb5f48b 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 1.109 2002/04/22 14:40:23 roberto Exp roberto $ 2** $Id: ldebug.c,v 1.110 2002/04/24 20:07:46 roberto Exp roberto $
3** Debug Interface 3** Debug Interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -48,7 +48,7 @@ static int currentline (lua_State *L, CallInfo *ci) {
48 if (pc < 0) 48 if (pc < 0)
49 return -1; /* only active lua functions have current-line information */ 49 return -1; /* only active lua functions have current-line information */
50 else 50 else
51 return ci_func(ci)->l.p->lineinfo[pc]; 51 return getline(ci_func(ci)->l.p, pc);
52} 52}
53 53
54 54