Skip to content

Commit

Permalink
Merge pull request #33 from tonsky/master
Browse files Browse the repository at this point in the history
Fix boxed math warning
  • Loading branch information
huahaiy authored Sep 5, 2024
2 parents 485bbb5 + 96fa77b commit b1e5b5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/editscript/diff/a_star.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@
(get-next [this] "Get the next sibling node")
(set-next [this node] "Set the next sibling node")
(set-order [this o] "Set the traversal order of this node")
(^long get-order [this] "Get the order of this node in traversal")
(^long get-size [this] "Get the size of sub-tree, used to estimate cost")
#?(:clj (get-order ^long [this] "Get the order of this node in traversal")
:cljs (^number get-order [this] "Get the order of this node in traversal"))
#?(:clj (get-size ^long [this] "Get the size of sub-tree, used to estimate cost")
:cljs (^number get-size [this] "Get the size of sub-tree, used to estimate cost"))
(set-size [this s] "Set the size of sub-tree"))

(deftype Node [^PersistentVector path
Expand Down

0 comments on commit b1e5b5a

Please sign in to comment.