Skip to content

Commit

Permalink
fix after tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
alyst committed Jul 27, 2021
1 parent 71edcd1 commit 2e4013f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ function _uniquerefs(A::CatArrOrSub{T}) where T
res = similar(arefs, 0)
nlevels = length(levels(A))
maxunique = nlevels + (T >: Missing ? 1 : 0)
seen = fill(false, maxunique)
seen = fill(false, nlevels + 1) # always +1 for 0 (missing ref)
@inbounds for ref in arefs
if !seen[ref + 1]
push!(res, ref)
Expand Down

0 comments on commit 2e4013f

Please sign in to comment.