aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ltests.c b/ltests.c
index 5e2b6d75..4e26fbe6 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.61 2009/04/17 14:28:06 roberto Exp roberto $ 2** $Id: ltests.c,v 2.62 2009/04/17 22:00:01 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*/
@@ -43,7 +43,7 @@ void *l_Trick = 0;
43int islocked = 0; 43int islocked = 0;
44 44
45 45
46#define obj_at(L,k) (L->ci->base+(k) - 1) 46#define obj_at(L,k) (L->ci->func + (k))
47 47
48 48
49static void setnameval (lua_State *L, const char *name, int val) { 49static void setnameval (lua_State *L, const char *name, int val) {
@@ -514,7 +514,7 @@ static int mem_query (lua_State *L) {
514 514
515 515
516static int settrick (lua_State *L) { 516static int settrick (lua_State *L) {
517 l_Trick = (L->base)->value.gc; 517 l_Trick = obj_at(L, 1)->value.gc;
518 return 0; 518 return 0;
519} 519}
520 520