Skip to content

Commit 663e71e

Browse files
committed
fix
1 parent 4dc787e commit 663e71e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/cljs/cljs/core.cljs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2813,7 +2813,8 @@ reduces them without incurring seq initialization"
28132813
(cond
28142814
(NaN? x) x
28152815
(NaN? y) y
2816-
:else (cljs.core/max x y)))
2816+
(> x y) x
2817+
:else y))
28172818
([x y & more]
28182819
(reduce max (cljs.core/max x y) more)))
28192820

@@ -2824,7 +2825,8 @@ reduces them without incurring seq initialization"
28242825
(cond
28252826
(NaN? x) x
28262827
(NaN? y) y
2827-
:else (cljs.core/min x y)))
2828+
(< x y) x
2829+
:else y))
28282830
([x y & more]
28292831
(reduce min (cljs.core/min x y) more)))
28302832

0 commit comments

Comments
 (0)