We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53a57b6 commit 107eb74Copy full SHA for 107eb74
src/main/cljs/cljs/core.cljs
@@ -966,8 +966,8 @@
966
(defn hash-double [f]
967
(let [arr (doto (js/Float64Array. 1) (aset 0 f))
968
buf (.-buffer arr)
969
- low (.getInt32 (js/DataView. buf 0 4))
970
- high (.getInt32 (js/DataView. buf 4 4))]
+ high (.getInt32 (js/DataView. buf 0 4))
+ low (.getInt32 (js/DataView. buf 4 4))]
971
(hash-long high low)))
972
973
(defn ^number m3-hash-unencoded-chars [in]
@@ -1031,7 +1031,7 @@
1031
1032
(number? o)
1033
(if ^boolean (js/isFinite o)
1034
- (if-not (.isInteger js/Number o)
+ (if-not ^boolean (.isInteger js/Number o)
1035
(hash-double o)
1036
(js-mod (Math/floor o) 2147483647))
1037
(case o
0 commit comments