Skip to content

Commit f7f6bb9

Browse files
authored
Update src/forest.jl
1 parent c6a0c99 commit f7f6bb9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/forest.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function Forest{T}(n::Integer) where {T<:Integer}
1212
sizehint!(intmap, n)
1313
parents = collect(Base.OneTo(T(n)))
1414
ranks = zeros(T, T(n))
15-
ntrees = T(n)
15+
ntrees = zero(T)
1616
return Forest{T}(counter, intmap, parents, ranks, ntrees)
1717
end
1818

0 commit comments

Comments
 (0)