Commit 0e8b548
committed
rutils.iter: fix defcaluse-sequence drivers
Defaults `step` in `return-seq-code` to 1.
Currently, all drivers that use `defclause-sequence` are broken, because
`step` is not bound before `return-sequence-code` is called. This
results in `step` being bound to nil, which means `initial-value` is
set to `(- nil)` and `step-code` is set to something like `(+ index
nil)`. This change causes `step` to default to 1 if it is not provided.1 parent 79cb029 commit 0e8b548
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2000 | 2000 | | |
2001 | 2001 | | |
2002 | 2002 | | |
2003 | | - | |
| 2003 | + | |
2004 | 2004 | | |
2005 | 2005 | | |
2006 | 2006 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments