We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6e0fde commit 791a901Copy full SHA for 791a901
Project.toml
@@ -1,6 +1,6 @@
1
name = "StaticArrays"
2
uuid = "90137ffa-7385-5640-81b9-e52037218182"
3
-version = "1.5.14"
+version = "1.5.15"
4
5
[deps]
6
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
src/linalg.jl
@@ -247,7 +247,7 @@ end
247
$(Expr(:meta, :inline))
248
scale = maxabs_nested(a)
249
250
- scale==0 && return _init_zero(a)
+ iszero(scale) && return _init_zero(a)
251
return @inbounds scale * sqrt($expr)
252
end
253
test/unitful.jl
@@ -3,4 +3,6 @@ using Unitful
@testset "Unitful" begin
# issue #1124
@test norm(SVector(1.0*u"m")) == 1.0*u"m"
+ # issue $1127
7
+ @test norm(SVector(0.0, 0.0)*u"nm") == 0.0*u"nm"
8
0 commit comments