Skip to content

Commit

Permalink
Add type hint for ->array. (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
phronmophobic authored Sep 9, 2024
1 parent 9de4bfe commit ef361b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tech/v3/datatype/copy_make_container.clj
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
item
"nil value passed into ->array")
(let [item (apply-nan-strat datatype nan-strategy item)
^ArrayBuffer
abuf (dtype-base/as-array-buffer item)]
(if (and abuf (identical? (.-dtype abuf) (casting/datatype->host-datatype datatype)))
(if (and (== (.-offset abuf) 0)
Expand Down

0 comments on commit ef361b5

Please sign in to comment.