Skip to content

Commit

Permalink
fix cast in read-line [issue 82], patch from Chouser/Trolard
Browse files Browse the repository at this point in the history
  • Loading branch information
richhickey committed Mar 3, 2009
1 parent f53b883 commit 7dc9d66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/clj/clojure/core.clj
Expand Up @@ -2094,7 +2094,10 @@

(defn read-line
"Reads the next line from stream that is the current value of *in* ."
[] (. #^java.io.BufferedReader *in* (readLine)))
[]
(if (instance? clojure.lang.LineNumberingPushbackReader *in*)
(.readLine #^clojure.lang.LineNumberingPushbackReader *in*)
(.readLine #^java.io.BufferedReader *in*)))

(defn read-string
"Reads one object from the string s"
Expand Down

0 comments on commit 7dc9d66

Please sign in to comment.