From 3b44821334a1aa387c13eaf3cd23a2344091cbc7 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 2 Jun 2011 16:31:40 -0300 Subject: stricter control (using tag variants) over closure kinds (Lua x C) --- ltests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index ec30724c..52071bf1 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.117 2011/05/05 16:18:53 roberto Exp roberto $ +** $Id: ltests.c,v 2.118 2011/05/25 14:12:28 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -291,7 +291,7 @@ static void checkclosure (global_State *g, Closure *cl) { static int lua_checkpc (pCallInfo ci) { if (!isLua(ci)) return 1; else { - Proto *p = ci_func(ci)->l.p; + Proto *p = ci_func(ci)->p; return p->code <= ci->u.l.savedpc && ci->u.l.savedpc <= p->code + p->sizecode; } -- cgit v1.2.3-55-g6feb