Skip to content

Commit 679916c

Browse files
committed
GENERALIZEDARRAYS: fix bug and improve proposed interval-intersect
1 parent 2823818 commit 679916c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/generalized-arrays/generalized-arrays.scm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,8 +653,8 @@ OTHER DEALINGS IN THE SOFTWARE.
653653
(let ((r (%%interval-intersect (list a b))))
654654
(cond
655655
((not r))
656-
((%%interval= a r) a)
657-
((%%interval= b r) b)
656+
((equal? a r) a) ;; equivalent to %%interval=
657+
((equal? b r) b)
658658
(else r))))
659659
(else
660660
(error "interval-intersect: Not all arguments have the same dimension: " a b)))))

0 commit comments

Comments
 (0)