diff options
Diffstat (limited to 'bugs')
| -rw-r--r-- | bugs | 14 |
1 files changed, 11 insertions, 3 deletions
| @@ -561,11 +561,19 @@ local function d () end | |||
| 561 | 561 | ||
| 562 | patch = [[ | 562 | patch = [[ |
| 563 | * lparser.c: | 563 | * lparser.c: |
| 564 | 1145c1145,1146 | 564 | 1143a1144 |
| 565 | > FuncState *fs = ls->fs; | ||
| 566 | 1145c1146,1147 | ||
| 565 | < init_exp(&v, VLOCAL, ls->fs->freereg++); | 567 | < init_exp(&v, VLOCAL, ls->fs->freereg++); |
| 566 | --- | 568 | --- |
| 567 | > init_exp(&v, VLOCAL, ls->fs->freereg); | 569 | > init_exp(&v, VLOCAL, fs->freereg); |
| 568 | > luaK_reserveregs(ls->fs, 1); | 570 | > luaK_reserveregs(fs, 1); |
| 571 | 1148c1150,1152 | ||
| 572 | < luaK_storevar(ls->fs, &v, &b); | ||
| 573 | --- | ||
| 574 | > luaK_storevar(fs, &v, &b); | ||
| 575 | > /* debug information will only see the variable after this point! */ | ||
| 576 | > getlocvar(fs, fs->nactvar - 1).startpc = fs->pc; | ||
| 569 | ]], | 577 | ]], |
| 570 | 578 | ||
| 571 | } | 579 | } |
