Skip to content

Commit 1b43a2e

Browse files
Update src/evalpoly.jl
Co-authored-by: Martin Holters <[email protected]>
1 parent b43e5e6 commit 1b43a2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/evalpoly.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function _evalpoly(X::AbstractMatrix, p)
55
Base.require_one_based_indexing(p)
66
p0 = isempty(p) ? Base.reduce_empty_iter(+, p) : p[end]
77
Xone = one(X)
8-
S = Base.promote_op(*, typeof(Xone), typeof(Xone))(Xone) * p0
8+
S = convert(Base.promote_op(*, typeof(Xone), typeof(Xone)), Xone) * p0
99
for i = length(p)-1:-1:1
1010
S = X * S + @inbounds(p[i] isa AbstractMatrix ? p[i] : p[i] * I)
1111
end

0 commit comments

Comments
 (0)