Selaa lähdekoodia

fix: use nbb compatible math fn

Gabriel Horner 1 vuosi sitten
vanhempi
sitoutus
22cd0b3e50
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      deps/common/src/logseq/common/uuid.cljs

+ 1 - 1
deps/common/src/logseq/common/uuid.cljs

@@ -23,7 +23,7 @@ the remaining chars for data of this type"
   "00000002-<hash-of-db-ident>-<padding-with-0>"
   [db-ident]
   {:pre [(keyword? db-ident)]}
-  (let [hash-num (str (abs (hash db-ident)))
+  (let [hash-num (str (Math/abs (hash db-ident)))
         part1 (fill-with-0 (subs hash-num 0 4) 4)
         part2 (fill-with-0 (subs hash-num 4 8) 4)
         part3 (fill-with-0 (subs hash-num 8 12) 4)