Skip to content

Commit 78e9354

Browse files
committed
fixed ver comp
1 parent dcfee99 commit 78e9354

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/main/clojure/clojure/core/async/impl/dispatch.clj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@
7575

7676
(defn ensure-clojure-version! [maj min incr]
7777
(let [{:keys [major minor incremental]} *clojure-version*]
78-
(when (or (< maj major)
79-
(< min minor)
80-
(< incr incremental))
78+
(when-not
79+
(or (> major maj)
80+
(and (= major maj) (> minor min))
81+
(and (= major maj) (= minor min) (>= incremental incr)))
8182
(throw (ex-info (str "core.async go block expander requires Clojure version ≥"
8283
maj "." min "." incr
8384
" to load")

0 commit comments

Comments
 (0)