From dd093319e67eb4149faa3e7f9ba3311cd9c05d17 Mon Sep 17 00:00:00 2001 From: Carlo Zanella Date: Thu, 11 Jan 2018 15:40:21 +0100 Subject: [PATCH] fixed warnings in Julia v0.6 --- src/GroupSlices.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GroupSlices.jl b/src/GroupSlices.jl index 6d69634..c4043f9 100644 --- a/src/GroupSlices.jl +++ b/src/GroupSlices.jl @@ -44,7 +44,7 @@ end end # Collect index of first row for each hash - uniquerow = Array(Int, size(A, dim)) + uniquerow = Array{Int}(size(A, dim)) firstrow = Dict{Prehashed,Int}() for k = 1:size(A, dim) uniquerow[k] = get!(firstrow, Prehashed(hashes[k]), k) @@ -128,7 +128,7 @@ function groupinds(ic::Vector{Int}) d[ia[i]]= i end - ib = Array(Vector{Int},n) + ib = Array{Vector{Int}}(n) for k = 1:n ib[k] = Int[] end @@ -160,7 +160,7 @@ operates on the output returned from `groupinds(ic::Vector{Int})`. function firstinds(ic::Vector{Int}) id = unique(ic) n = length(id) - ia = Array(Int,n) + ia = Array{Int}(n) for i = 1:n ia[i] = findfirst(ic, id[i]) end