summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/boot.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot.clj b/src/boot.clj
index 06aa9efd..55dca185 100644
--- a/src/boot.clj
+++ b/src/boot.clj
@@ -1190,7 +1190,7 @@ not-every? (comp not every?))
(defn range
"Returns a lazy seq of nums from start (inclusive) to end
(exclusive), by step, where start defaults to 0 and step to 1."
- ([end] (if (< end (. Integer MAX_VALUE))
+ ([end] (if (and (> end 0) (< end (. Integer MAX_VALUE)))
(new clojure.lang.Range 0 end)
(take end (iterate inc 0))))
([start end] (if (and (< start end) (< end (. Integer MAX_VALUE)))