diff options
-rw-r--r-- | src/lj_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_parse.c b/src/lj_parse.c index 7268d176..de6672ba 100644 --- a/src/lj_parse.c +++ b/src/lj_parse.c | |||
@@ -481,8 +481,8 @@ static void bcemit_nil(FuncState *fs, BCReg from, BCReg n) | |||
481 | } else { | 481 | } else { |
482 | break; | 482 | break; |
483 | } | 483 | } |
484 | fs->pc--; /* Drop KPRI. */ | 484 | *ip = BCINS_AD(BC_KNIL, from, from+n-1); /* Replace KPRI. */ |
485 | break; | 485 | return; |
486 | case BC_KNIL: | 486 | case BC_KNIL: |
487 | pto = bc_d(*ip); | 487 | pto = bc_d(*ip); |
488 | if (pfrom <= from && from <= pto+1) { /* Can we connect both ranges? */ | 488 | if (pfrom <= from && from <= pto+1) { /* Can we connect both ranges? */ |