Skip to content

Commit

Permalink
Don't match on AbstractVector type parameter due to compiler crash (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
quinnj authored Aug 24, 2020
1 parent a79ebc2 commit a391912
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "DataFrames"
uuid = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
version = "0.21.6"
version = "0.21.7"

[deps]
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
Expand Down
4 changes: 2 additions & 2 deletions src/groupeddataframe/splitapplycombine.jl
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ function copyto_widen!(res::AbstractVector{T}, x::AbstractVector) where T
end

function groupreduce!(res::AbstractVector, f, op, condf, adjust, checkempty::Bool,
incol::AbstractVector{T}, gd::GroupedDataFrame) where {T}
incol::AbstractVector, gd::GroupedDataFrame)
n = length(gd)
if adjust !== nothing || checkempty
counts = zeros(Int, n)
Expand Down Expand Up @@ -1001,7 +1001,7 @@ function groupreduce!(res::AbstractVector, f, op, condf, adjust, checkempty::Boo
end
@inbounds for gix in eachindex(res)
if !isassigned(res, gix)
res[gix] = initf(nonmissingtype(T))
res[gix] = initf(nonmissingtype(eltype(incol)))
end
end
end
Expand Down

0 comments on commit a391912

Please sign in to comment.