diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-07-08 17:22:08 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-07-08 17:22:08 -0300 |
| commit | 44752fc9ce2588a9b402d335c87660a9ee28a157 (patch) | |
| tree | 824f78c6256f46d25dbeab117a5bfcca0bbfb67a /lvm.c | |
| parent | 39b2d58c39fd0cd554b27ed071926bc439338964 (diff) | |
| download | lua-44752fc9ce2588a9b402d335c87660a9ee28a157.tar.gz lua-44752fc9ce2588a9b402d335c87660a9ee28a157.tar.bz2 lua-44752fc9ce2588a9b402d335c87660a9ee28a157.zip | |
hook count is quadratic
Diffstat (limited to 'lvm.c')
| -rw-r--r-- | lvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lvm.c,v 1.244 2002/07/05 18:27:39 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.245 2002/07/08 18:21:33 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,7 +70,7 @@ int luaV_tostring (lua_State *L, TObject *obj) { | |||
| 70 | 70 | ||
| 71 | static void traceexec (lua_State *L) { | 71 | static void traceexec (lua_State *L) { |
| 72 | int mask = L->hookmask; | 72 | int mask = L->hookmask; |
| 73 | if (mask >= LUA_MASKCOUNT) { /* instruction hook set? */ | 73 | if (mask > LUA_MASKLINE) { /* instruction hook set? */ |
| 74 | if (L->hookcount == 0) { | 74 | if (L->hookcount == 0) { |
| 75 | luaD_callhook(L, LUA_HOOKCOUNT, -1); | 75 | luaD_callhook(L, LUA_HOOKCOUNT, -1); |
| 76 | resethookcount(L); | 76 | resethookcount(L); |
