1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-11 22:31:12 +02:00

intset-next starting point is optional

* module/language/cps/intset.scm (intset-remove): Remove incorrect comment.
  (intset-next): "i" is optional.
This commit is contained in:
Andy Wingo 2015-05-24 16:51:01 +02:00
parent 8f578af0bb
commit 6a42ac74ce

View file

@ -327,7 +327,6 @@
(cond
((not root) bs)
((and (<= min i) (< i (+ min (ash 1 shift))))
;; Add element to set; level will not change.
(let ((old-root root)
(root (remove (- i min) shift root)))
(if (eq? root old-root)
@ -353,7 +352,7 @@
(assert-readable! edit)
(ref min shift root))))
(define (intset-next bs i)
(define* (intset-next bs #:optional i)
(define (visit-leaf node i)
(let lp ((idx (logand i *leaf-mask*)))
(if (logbit? idx node)