Skip to content

Commit

Permalink
Remove unneeded convert (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
oxinabox authored Jun 25, 2020
1 parent 6f02758 commit 77feda8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PooledArrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ function _label(xs::AbstractArray,
convert(Dict{T, I2}, invpool), pool, nlabels)
end
nlabels += 1
labels[i] = convert(I, nlabels)
invpool[x] = convert(I, nlabels)
labels[i] = nlabels
invpool[x] = nlabels
push!(pool, x)
end
end
Expand Down

0 comments on commit 77feda8

Please sign in to comment.