Commit 2f995d6
committed
DoList: Fix bug causing malformed lists to be generated
While evaluating the program for `DoList` or `DoSub`, the scratch pad
could be expanded by the program, adding "junk" to the generated list.
Added code that restores the scratchpad after program evaluation if
necessary.
This bug was detected by the GitHub CI on Windows where it was causing
an assertion failure on the generated list.
Signed-off-by: Christophe de Dinechin <christophe@dinechin.org>1 parent 35cef61 commit 2f995d6
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2438 | 2438 | | |
2439 | 2439 | | |
2440 | 2440 | | |
| 2441 | + | |
2441 | 2442 | | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
2442 | 2446 | | |
2443 | 2447 | | |
2444 | 2448 | | |
| |||
2530 | 2534 | | |
2531 | 2535 | | |
2532 | 2536 | | |
| 2537 | + | |
2533 | 2538 | | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
2534 | 2542 | | |
2535 | 2543 | | |
2536 | 2544 | | |
| |||
0 commit comments