Skip to content

Commit

Permalink
fixes for equiv compat
Browse files Browse the repository at this point in the history
  • Loading branch information
richhickey committed Jun 25, 2010
1 parent bb71105 commit 29b42bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/clojure/clojure/contrib/pprint/cl_format.clj
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ http://www.lispworks.com/documentation/HyperSpec/Body/22_c.htm
for improved performance"
[base val]
(let [format-str (get java-base-formats base)]
(if (and format-str (integer? val))
(if (and format-str (integer? val) (-> val class .getName (.startsWith "java.")))
(clojure.core/format format-str val)
(base-str base val))))

Expand Down

0 comments on commit 29b42bd

Please sign in to comment.