aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/clojure/clojure/contrib/json.clj3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/clojure/clojure/contrib/json.clj b/src/main/clojure/clojure/contrib/json.clj
index 0af05913..b4118c8f 100644
--- a/src/main/clojure/clojure/contrib/json.clj
+++ b/src/main/clojure/clojure/contrib/json.clj
@@ -11,7 +11,6 @@
;; agreeing to be bound by the terms of this license. You must not
;; remove this notice, or any other, from this software.
-
(ns #^{:author "Stuart Sierra"
:doc "JavaScript Object Notation (JSON) parser/writer.
See http://www.json.org/
@@ -222,7 +221,7 @@
java.lang.CharSequence
(print-json [s]
- (let [sb (StringBuilder. (count s))]
+ (let [sb (StringBuilder. #^Integer (count s))]
(.append sb \")
(dotimes [i (count s)]
(let [cp (Character/codePointAt s i)]