Skip to content

Commit

Permalink
* typos
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Jan 22, 2024
1 parent 53a57b6 commit 107eb74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/cljs/cljs/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -966,8 +966,8 @@
(defn hash-double [f]
(let [arr (doto (js/Float64Array. 1) (aset 0 f))
buf (.-buffer arr)
low (.getInt32 (js/DataView. buf 0 4))
high (.getInt32 (js/DataView. buf 4 4))]
high (.getInt32 (js/DataView. buf 0 4))
low (.getInt32 (js/DataView. buf 4 4))]
(hash-long high low)))

(defn ^number m3-hash-unencoded-chars [in]
Expand Down Expand Up @@ -1031,7 +1031,7 @@

(number? o)
(if ^boolean (js/isFinite o)
(if-not (.isInteger js/Number o)
(if-not ^boolean (.isInteger js/Number o)
(hash-double o)
(js-mod (Math/floor o) 2147483647))
(case o
Expand Down

0 comments on commit 107eb74

Please sign in to comment.