fixed a bug of not setting the exception variable position in compile_catch()
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -4299,7 +4299,8 @@ static HCL_INLINE int compile_catch (hcl_t* hcl)
|
||||
}
|
||||
|
||||
/* add the exception variable to the local variable list. increase the number of local variables */
|
||||
exarg_offset = hcl->c->tv.s.len + 1; /* when the variable name is added, its offset will be the current length + 1 for a space character added */
|
||||
exarg_offset = hcl->c->tv.s.len;
|
||||
if (hcl->c->tv.s.len > 0) exarg_offset++; /* if the variable is not the first, add 1 for a preceding space */
|
||||
|
||||
if (hcl->c->funblk.depth > 0)
|
||||
{
|
||||
|
2
lib/gc.c
2
lib/gc.c
@ -662,7 +662,7 @@ static kernel_class_info_t kernel_classes[__KCI_MAX__] =
|
||||
|
||||
KCI(KCI_SYSTEM) {
|
||||
"System",
|
||||
KCI_OBJECT,
|
||||
KCI_APEX,
|
||||
0,
|
||||
0,
|
||||
5, /* asyncsg, gcfin_sem, gcfin_should_exit, ossig_pid, shr */
|
||||
|
Reference in New Issue
Block a user