filter-weak-ptr-list had args to reduce in wrong order.
This commit is contained in:
parent
7d810091d8
commit
2ccc95ff78
|
@ -258,11 +258,12 @@
|
||||||
(define reaped-procs '()) ; Reaped, but not yet waited.
|
(define reaped-procs '()) ; Reaped, but not yet waited.
|
||||||
|
|
||||||
(define (filter-weak-ptr-list pred lis)
|
(define (filter-weak-ptr-list pred lis)
|
||||||
(reverse (reduce '() (lambda (wptr result)
|
(reverse (reduce (lambda (wptr result)
|
||||||
(let ((val (weak-pointer-ref wptr)))
|
(let ((val (weak-pointer-ref wptr)))
|
||||||
(if (and val (pred val))
|
(if (and val (pred val))
|
||||||
(cons wptr result)
|
(cons wptr result)
|
||||||
result)))
|
result)))
|
||||||
|
'()
|
||||||
lis)))
|
lis)))
|
||||||
|
|
||||||
;;; Add a newly-reaped proc to the list.
|
;;; Add a newly-reaped proc to the list.
|
||||||
|
|
Loading…
Reference in New Issue