Skip to content

Commit 045c1cf

Browse files
committed
explicitly call convert instead of constructor
1 parent e578b9b commit 045c1cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/det.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@inline function det(A::StaticMatrix)
22
T = eltype(A)
33
S = typeof((one(T)*zero(T) + zero(T))/one(T))
4-
A_S = similar_type(A,S)(A)
4+
A_S = convert(similar_type(A,S),A)
55
_det(Size(A_S),A_S)
66
end
77

src/inv.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@inline function inv(A::StaticMatrix)
22
T = eltype(A)
33
S = typeof((one(T)*zero(T) + zero(T))/one(T))
4-
A_S = similar_type(A,S)(A)
4+
A_S = convert(similar_type(A,S),A)
55
_inv(Size(A_S),A_S)
66
end
77

0 commit comments

Comments
 (0)