From 73148041a29bc6d22b1eb84e8237f641634337df Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sun, 26 Dec 2021 16:00:08 +0000 Subject: [PATCH] fixed another bug compiling a catch block --- lib/comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/comp.c b/lib/comp.c index d82e809..eb32b5f 100644 --- a/lib/comp.c +++ b/lib/comp.c @@ -2804,7 +2804,7 @@ static HCL_INLINE int compile_catch (hcl_t* hcl) if (add_temporary_variable(hcl, HCL_CNODE_GET_TOK(exarg), hcl->c->tv.s.len) <= -1) return -1; #if !defined(HCL_BUILD_RELEASE) - if (hcl->c->fnblk.depth >= 0) + if (hcl->c->fnblk.depth > 0) { fbi = &hcl->c->fnblk.info[hcl->c->fnblk.depth - 1]; /* parent block */ par_tmprcnt = fbi->tmprcnt;