Skip to content

Commit

Permalink
Fix BC_UCLO insertion for returns.
Browse files Browse the repository at this point in the history
Contributed by XmiliaH.
  • Loading branch information
Mike Pall committed Mar 13, 2022
1 parent 62339a6 commit 93a65d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lj_parse.c
Expand Up @@ -1570,7 +1570,7 @@ static void fs_fixup_ret(FuncState *fs)
/* Replace with UCLO plus branch. */
fs->bcbase[pc].ins = BCINS_AD(BC_UCLO, 0, offset);
break;
case BC_UCLO:
case BC_FNEW:
return; /* We're done. */
default:
break;
Expand Down

0 comments on commit 93a65d3

Please sign in to comment.