Skip to content

Commit

Permalink
fixed warnings in Julia v0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
carlozanella committed Jan 11, 2018
1 parent 7b7693a commit dd09331
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/GroupSlices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dd09331

Please sign in to comment.