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:
parent
8f578af0bb
commit
6a42ac74ce
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue