fixed another bug compiling a catch block

This commit is contained in:
hyung-hwan 2021-12-26 16:00:08 +00:00
parent 447fafd7b2
commit 73148041a2

View File

@ -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 (add_temporary_variable(hcl, HCL_CNODE_GET_TOK(exarg), hcl->c->tv.s.len) <= -1) return -1;
#if !defined(HCL_BUILD_RELEASE) #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 */ fbi = &hcl->c->fnblk.info[hcl->c->fnblk.depth - 1]; /* parent block */
par_tmprcnt = fbi->tmprcnt; par_tmprcnt = fbi->tmprcnt;