Skip to content

Commit

Permalink
Merge pull request #1 from carlozanella/pull-request/dd093319
Browse files Browse the repository at this point in the history
fixed warnings in Julia v0.6
  • Loading branch information
carlozanella authored Jan 17, 2018
2 parents 7b7693a + dd09331 commit ee8a01f
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 ee8a01f

Please sign in to comment.