summaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-03-21 07:00:43 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-03-21 07:00:43 -0700
commit70817a322732eef130dd943ac95d6d9c4b805920 (patch)
treeae9e3df3e4a342608b58e274d4b603bafe1630c6 /struct.c
parente64bfa71cdb0f3be303ebb872e05540497197a58 (diff)
downloadtxr-70817a322732eef130dd943ac95d6d9c4b805920.tar.gz
txr-70817a322732eef130dd943ac95d6d9c4b805920.tar.bz2
txr-70817a322732eef130dd943ac95d6d9c4b805920.zip
compiler: append-each: bugfix for non-lists.
* share/txr/stdlib/compiler.tl: If a non-list sequence like a string or vector is being accumulated, we must have an append call, because the accumulation cell is never extended with new cells. After we replace the cdr of ,accum with a string or vector atom, (last ,accum) just finds ,accum and so then the cdr will be clobbered on the next iteration.
Diffstat (limited to 'struct.c')
0 files changed, 0 insertions, 0 deletions