summaryrefslogtreecommitdiff
path: root/lib/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lua')
-rw-r--r--lib/lua/src/lvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lua/src/lvm.c b/lib/lua/src/lvm.c
index adca9b2..b2070bb 100644
--- a/lib/lua/src/lvm.c
+++ b/lib/lua/src/lvm.c
@@ -1,5 +1,5 @@
/*
-** $Id: lvm.c,v 1.6 2004-12-27 19:52:24 pixel Exp $
+** $Id: lvm.c,v 1.7 2005-01-02 05:06:11 pixel Exp $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -66,7 +66,7 @@ int luaV_tostring (lua_State *L, StkId obj) {
static void traceexec (lua_State *L) {
lu_byte mask = L->hookmask;
- if (mask > LUA_MASKCOUNT) { /* instruction-hook set? */
+ if (mask & LUA_MASKCOUNT) { /* instruction-hook set? */
if (L->hookcount == 0) {
resethookcount(L);
luaD_callhook(L, LUA_HOOKCOUNT, -1);