Skip to content

Commit 1612583

Browse files
committed
fix issue JuliaStats#48
1 parent 413ff75 commit 1612583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kd.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function KDTree(xs::AbstractMatrix{T},
6464
push!(verts, T[vert...])
6565
end
6666

67-
root = build_kdtree(xs, perm, bounds, leaf_size_cutoff, leaf_diameter_cutoff, verts)
67+
root = build_kdtree(xs, perm, bounds, leaf_size_cutoff, convert(T,leaf_diameter_cutoff), verts)
6868

6969
KDTree(xs, collect(1:n), root, verts, bounds)
7070
end

0 commit comments

Comments
 (0)