Skip to content

Commit 516c73d

Browse files
committed
First attempt to be Julia v0.6 friendly
Changing a generated closure to a genereated anonymous function. I'm not sure if the compiler will see a distinction but Travis will let me know.
1 parent 20275db commit 516c73d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linalg.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ end
377377
elseif p == 2
378378
return vecnorm(a)
379379
elseif p == 0
380-
return mapreduce(x -> (x == 0 ? zero(real(eltype(a))) : one(real(eltype(a)))), +, $(zero(real(eltype(a)))), a)
380+
return mapreduce(x -> (x== 0 ? $(zero(real(eltype(a)))) : $(one(real(eltype(a))))), +, $(zero(real(eltype(a)))), a)
381381
else
382382
@inbounds return ($expr)^(inv(p))
383383
end

0 commit comments

Comments
 (0)