diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-01-17 10:57:15 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-01-17 10:57:15 -0800 |
commit | 1c3cecbb1a75bae5c04e5c32ba0a259b33a74c23 (patch) | |
tree | ac90603c4bc73fc30f9ec8e0bec2bc9ad12020f2 | |
parent | b6a5d3a37c7e38d43d30a14ab64a76596007d190 (diff) | |
download | txr-1c3cecbb1a75bae5c04e5c32ba0a259b33a74c23.tar.gz txr-1c3cecbb1a75bae5c04e5c32ba0a259b33a74c23.tar.bz2 txr-1c3cecbb1a75bae5c04e5c32ba0a259b33a74c23.zip |
partition* bugfix: incorrect behavior for 0.
lib.c (partition_star): In the special case that the indices
argument is given as the integer zero, the function wrongly
returned just the remaining piece of the sequence after zero,
rather than a list containing this piece.
-rw-r--r-- | lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2019,7 +2019,7 @@ val partition_star(val seq, val indices) return cons(seq, nil); if (indices == zero) - return nullify(rest(seq)); + return cons(nullify(rest(seq)), nil); if (!seqp(indices)) { indices = cons(indices, nil); |