Skip to content

Commit df1e18f

Browse files
committed
Support unitful types
1 parent 4912bec commit df1e18f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/SparseArrays/src/higherorderfns.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ function _outer(trans::Tf, x, y) where Tf
831831
nnzw = length(nzvalsw)
832832

833833
nnzC = nnzx * nnzw
834-
Tv = typeof(one(eltype(x)) * one(eltype(w)))
834+
Tv = typeof(oneunit(eltype(x)) * oneunit(eltype(w)))
835835
Ti = promote_type(indtype(x), indtype(w))
836836
colptrC = zeros(Ti, nw + 1)
837837
rowvalC = Vector{Ti}(undef, nnzC)

0 commit comments

Comments
 (0)