From 4f8d7be8ea8a103f4d9046188d6005740b74f3d4 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Fri, 12 Feb 2010 16:17:42 +0100 Subject: Extend scope of local vars in debug info beyond final return. --- src/lj_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lj_parse.c b/src/lj_parse.c index ed695e19..acc25519 100644 --- a/src/lj_parse.c +++ b/src/lj_parse.c @@ -1155,9 +1155,9 @@ static GCproto *fs_finish(LexState *ls, BCLine line) GCproto *pt; /* Apply final fixups. */ - var_remove(ls, 0); lua_assert(fs->bl == NULL); fs_fixup_ret(fs); + var_remove(ls, 0); /* Calculate total size of prototype including all colocated arrays. */ sizept = sizeof(GCproto) + fs->pc*sizeof(BCIns) + fs->nkgc*sizeof(GCRef); -- cgit v1.2.3-55-g6feb