diff --git a/src/series.jl b/src/series.jl index 8b3f19bb..9af76774 100644 --- a/src/series.jl +++ b/src/series.jl @@ -627,7 +627,7 @@ group_as_matrix(t) = false else g = args[1] if length(g.args) == 1 - x = zeros(Int64, lengthGroup) + x = zeros(Int, lengthGroup) for indexes in groupby.groupIds x[indexes] = 1:length(indexes) end diff --git a/src/utils.jl b/src/utils.jl index 8ee4a656..1bfc2651 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -201,7 +201,7 @@ function iter_segments(series::Series) return [i:(i + 1) for i in 1:(length(y) - 1)] end else - segs = UnitRange{Int64}[] + segs = UnitRange{Int}[] args = is3d(series) ? (x, y, z) : (x, y) for seg in iter_segments(args...) push!(segs, seg)