Skip to content

Commit e8e4ee6

Browse files
blegatgdalle
andauthored
Update src/result.jl
Co-authored-by: Guillaume Dalle <22795598+gdalle@users.noreply.github.com>
1 parent 6834cd9 commit e8e4ee6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/result.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Assumes the colors are contiguously numbered from `0` to some `cmax`.
8383
"""
8484
function group_by_color(::Type{T}, color::AbstractVector) where {T<:Integer}
8585
if isempty(color)
86-
return SubArray{Int,1,Vector{Int},Tuple{UnitRange{Int}},true}[]
86+
return typeof(view(T[], 1:0))[]
8787
end
8888
cmin, cmax = extrema(color)
8989
@assert cmin >= 0

0 commit comments

Comments
 (0)