Skip to content

Commit

Permalink
Use warn() instead of println in base/sprase/sparsematrix.jl
Browse files Browse the repository at this point in the history
Closes #5038
  • Loading branch information
staticfloat committed Dec 6, 2013
1 parent 044a7a8 commit 04f5c34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/sparse/sparsematrix.jl
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ function findn{Tv,Ti}(S::SparseMatrixCSC{Tv,Ti})
J[count] = col
count += 1
else
println("warning: sparse matrix contains explicit stored zeros")
warn("sparse matrix contains explicit stored zeros")
end
end

Expand All @@ -313,7 +313,7 @@ function findnz{Tv,Ti}(S::SparseMatrixCSC{Tv,Ti})
V[count] = S.nzval[k]
count += 1
else
println("warning: sparse matrix contains explicit stored zeros")
warn("sparse matrix contains explicit stored zeros")
end
end

Expand Down

0 comments on commit 04f5c34

Please sign in to comment.