summaryrefslogtreecommitdiff
path: root/ldblib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldblib.c')
-rw-r--r--ldblib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldblib.c b/ldblib.c
index 9bdbe5d2..98faf5a7 100644
--- a/ldblib.c
+++ b/ldblib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldblib.c,v 1.33 2001/02/23 17:17:25 roberto Exp roberto $ 2** $Id: ldblib.c,v 1.34 2001/03/06 20:09:38 roberto Exp roberto $
3** Interface from Lua to its debug API 3** Interface from Lua to its debug API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -121,7 +121,7 @@ static void hookf (lua_State *L, void *key) {
121 lua_pushuserdata(L, key); 121 lua_pushuserdata(L, key);
122 lua_gettable(L, -2); 122 lua_gettable(L, -2);
123 if (lua_isfunction(L, -1)) { 123 if (lua_isfunction(L, -1)) {
124 lua_pushvalue(L, 1); 124 lua_pushvalue(L, -3); /* original argument (below table and function) */
125 lua_rawcall(L, 1, 0); 125 lua_rawcall(L, 1, 0);
126 } 126 }
127 else 127 else