Skip to content

Commit

Permalink
Merge pull request JuliaLang#128 from randy3k/pool
Browse files Browse the repository at this point in the history
fix the constructor of PooledDataArray
  • Loading branch information
simonster committed Oct 23, 2014
2 parents bef4053 + 4698474 commit 4bed756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pooleddataarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ end
function PooledDataArray{T,R<:Integer,N}(d::AbstractArray{T, N},
m::AbstractArray{Bool, N},
r::Type{R} = DEFAULT_POOLED_REF_TYPE)
pool = unique(d[!m])
pool = convert(Array, unique(d[!m]))
if method_exists(isless, (T, T))
sort!(pool)
end
Expand Down

0 comments on commit 4bed756

Please sign in to comment.