diff --git a/backend/src/app/http/sse.clj b/backend/src/app/http/sse.clj index 7459d9224b..8d431cc93c 100644 --- a/backend/src/app/http/sse.clj +++ b/backend/src/app/http/sse.clj @@ -33,7 +33,7 @@ (println "event:" (d/name name)) (println "data:" (t/encode-str data {:type :json-verbose})) (println))] - (.getBytes data "UTF-8")) + (.getBytes ^String data "UTF-8")) (catch Throwable cause (l/err :hint "unexpected error on encoding value on sse stream" :cause cause) diff --git a/backend/src/app/media.clj b/backend/src/app/media.clj index fafcccd2dc..5b5ad23e19 100644 --- a/backend/src/app/media.clj +++ b/backend/src/app/media.clj @@ -118,7 +118,7 @@ (defn- parse-svg [text] (let [text (strip-doctype text)] - (dm/with-open [istream (IOUtils/toInputStream text "UTF-8")] + (dm/with-open [istream (IOUtils/toInputStream ^String text "UTF-8")] (xml/parse istream secure-parser-factory)))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/backend/src/app/storage/gc_touched.clj b/backend/src/app/storage/gc_touched.clj index 45d4594292..199d0c6b74 100644 --- a/backend/src/app/storage/gc_touched.clj +++ b/backend/src/app/storage/gc_touched.clj @@ -212,8 +212,8 @@ deleted 0] (if-let [chunk (get-chunk pool)] (let [[nfo ndo] (db/tx-run! cfg process-chunk! chunk)] - (recur (+ freezed nfo) - (+ deleted ndo))) + (recur (long (+ freezed nfo)) + (long (+ deleted ndo)))) (do (l/inf :hint "task finished" :to-freeze freezed diff --git a/backend/src/app/tasks/objects_gc.clj b/backend/src/app/tasks/objects_gc.clj index b44286e3dd..319ef2f526 100644 --- a/backend/src/app/tasks/objects_gc.clj +++ b/backend/src/app/tasks/objects_gc.clj @@ -313,7 +313,7 @@ (db/exec-one! conn ["SET LOCAL rules.deletion_protection TO off"]) (proc-fn cfg)))] (if (pos? result) - (recur (+ total result)) + (recur (long (+ total result))) total)))) (defmethod ig/assert-key ::handler @@ -335,7 +335,7 @@ (if-let [proc-fn (first procs)] (let [result (execute-proc! cfg proc-fn)] (recur (rest procs) - (+ total result))) + (long (+ total result)))) (do (l/inf :hint "task finished" :deleted total) {:processed total})))))) diff --git a/common/src/app/common/geom/modifiers.cljc b/common/src/app/common/geom/modifiers.cljc index bd6253e46f..01ade1dd61 100644 --- a/common/src/app/common/geom/modifiers.cljc +++ b/common/src/app/common/geom/modifiers.cljc @@ -99,7 +99,7 @@ [_ modif-tree] (reduce set-child-modifiers [layout-line modif-tree] children)] - (recur modif-tree (first pending) (rest pending) to-idx)) + (recur modif-tree (first pending) (rest pending) (long to-idx))) modif-tree))))) diff --git a/common/src/app/common/geom/shapes/flex_layout/drop_area.cljc b/common/src/app/common/geom/shapes/flex_layout/drop_area.cljc index e9a5fa4915..9bb428c2b1 100644 --- a/common/src/app/common/geom/shapes/flex_layout/drop_area.cljc +++ b/common/src/app/common/geom/shapes/flex_layout/drop_area.cljc @@ -177,7 +177,7 @@ (rest children)))))] (recur next-areas - (+ from-idx (:num-children current-line)) + (+ from-idx (long (:num-children current-line))) (+ (:x line-area) (:width line-area)) (+ (:y line-area) (:height line-area)) (rest lines))))))) diff --git a/common/src/app/common/geom/shapes/grid_layout/layout_data.cljc b/common/src/app/common/geom/shapes/grid_layout/layout_data.cljc index 1ec6bffd5a..639da86514 100644 --- a/common/src/app/common/geom/shapes/grid_layout/layout_data.cljc +++ b/common/src/app/common/geom/shapes/grid_layout/layout_data.cljc @@ -393,7 +393,7 @@ min-fr (let [{:keys [size type value]} (first tracks) min-fr (if (= type :flex) (max min-fr (/ size value)) min-fr)] - (recur (rest tracks) min-fr))))) + (recur (rest tracks) (double min-fr)))))) (defn calc-layout-data ([parent transformed-parent-bounds children bounds objects]