cmp: fix compiler macro for sequence functions with :end argument

The :end argument was ignored previously.
This commit is contained in:
Marius Gerbershagen 2019-12-22 16:37:40 +01:00
parent 35e4a9160f
commit a4e93f7b61

View file

@ -161,7 +161,9 @@
(unless ,test (return ,output))
(let ((,%elt (si::seq-iterator-ref ,%sequence ,%iterator)))
,@body)
(setf ,%iterator (si::seq-iterator-next ,%sequence ,%iterator)))))))
(setf ,%iterator (si::seq-iterator-next ,%sequence ,%iterator))
,(when end
`(decf ,%counter)))))))
;;;
;;; MEMBER