aboutsummaryrefslogtreecommitdiff
path: root/lvm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lvm.c')
-rw-r--r--lvm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lvm.c b/lvm.c
index c61d4a3c..fe30a27f 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 1.250 2002/08/07 14:24:24 roberto Exp roberto $ 2** $Id: lvm.c,v 1.251 2002/08/07 19:22:39 roberto Exp roberto $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -70,8 +70,8 @@ int luaV_tostring (lua_State *L, TObject *obj) {
70 70
71 71
72static void traceexec (lua_State *L) { 72static void traceexec (lua_State *L) {
73 int mask = L->hookmask; 73 unsigned long mask = L->hookmask;
74 if (mask > LUA_MASKLINE) { /* instruction hook set? */ 74 if (mask > LUA_MASKLINE) { /* instruction-hook set? */
75 if (L->hookcount == 0) { 75 if (L->hookcount == 0) {
76 luaD_callhook(L, LUA_HOOKCOUNT, -1); 76 luaD_callhook(L, LUA_HOOKCOUNT, -1);
77 resethookcount(L); 77 resethookcount(L);
@@ -92,7 +92,6 @@ static void traceexec (lua_State *L) {
92 ci = L->ci; /* previous call may reallocate `ci' */ 92 ci = L->ci; /* previous call may reallocate `ci' */
93 } 93 }
94 ci->u.l.savedpc = *ci->u.l.pc; 94 ci->u.l.savedpc = *ci->u.l.pc;
95 ci->state |= CI_SAVEDPC; /* `savedpc' is updated */
96 } 95 }
97} 96}
98 97