From 8855b91212d87338aa8b3cde99a1b39b7427b6bb Mon Sep 17 00:00:00 2001 From: rtoy <rtoy> Date: Mon, 27 Sep 2004 21:17:23 +0000 Subject: [PATCH] (remove-duplicates (list 0 1 2 0 1 2 0 1 2 0 1 2) :start 3 :end 9) => (0 1 2 0 1 2) instead of (0 1 2 0 1 2 0 1 2). Bug fix from Peter Graves, via cmucl-imp, 2004-09-27. --- code/seq.lisp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/seq.lisp b/code/seq.lisp index bbe50ef17..6e3574ed9 100644 --- a/code/seq.lisp +++ b/code/seq.lisp @@ -5,7 +5,7 @@ ;;; Carnegie Mellon University, and has been placed in the public domain. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/seq.lisp,v 1.48 2003/06/14 10:58:10 gerd Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/seq.lisp,v 1.49 2004/09/27 21:17:23 rtoy Exp $") ;;; ;;; ********************************************************************** ;;; @@ -1537,7 +1537,7 @@ (declare (fixnum index)) (setq splice (cdr (rplacd splice (list (car current))))) (setq current (cdr current))) - (do ((index 0 (1+ index))) + (do ((index start (1+ index))) ((or (and end (= index (the fixnum end))) (atom current))) (declare (fixnum index)) -- GitLab