Fixed type warning in macroexpansion of sequece iterators

This commit is contained in:
Juan Jose Garcia Ripoll 2010-09-21 09:25:26 +02:00
parent bd4f3597ed
commit 09ae1f43c0

View file

@ -140,8 +140,9 @@
(defmacro do-in-seq ((%elt sequence &key (start 0) end output) &body body)
(ext:with-unique-names (%start %iterator %counter %sequence)
(let* ((counter (and end `(- (or ,end most-positive-fixnum)
,%start)))
(let* ((counter (if end
`(- (or ,end most-positive-fixnum) ,%start)
0))
(test (if end
`(and ,%iterator (plusp ,%counter))
%iterator)))