From 44752fc9ce2588a9b402d335c87660a9ee28a157 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 8 Jul 2002 17:22:08 -0300 Subject: hook count is quadratic --- ldblib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldblib.c') diff --git a/ldblib.c b/ldblib.c index b6c78588..fc056cce 100644 --- a/ldblib.c +++ b/ldblib.c @@ -1,5 +1,5 @@ /* -** $Id: ldblib.c,v 1.61 2002/06/25 19:16:44 roberto Exp roberto $ +** $Id: ldblib.c,v 1.62 2002/07/08 18:21:33 roberto Exp roberto $ ** Interface from Lua to its debug API ** See Copyright Notice in lua.h */ @@ -132,7 +132,7 @@ static int makemask (const char *smask, int count) { if (strchr(smask, 'c')) mask |= LUA_MASKCALL; if (strchr(smask, 'r')) mask |= LUA_MASKRET; if (strchr(smask, 'l')) mask |= LUA_MASKLINE; - return mask | lua_maskcount(count); + return mask | LUA_MASKCOUNT(count); } -- cgit v1.2.3-55-g6feb