Skip to content

Commit cdaa8a5

Browse files
committed
Use var_indices
1 parent 0418eca commit cdaa8a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generic/UnivPoly.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ end
785785

786786
function evaluate(a::UnivPoly, A::Vector{<:Union{NCRingElem, RingElement}})
787787
a2 = data(a)
788-
varidx = Int[var_index(x) for x in vars(a2)]
788+
varidx = var_indices(a2)
789789
isempty(varidx) && return constant_coefficient(a2)
790790
isempty(A) && error("Number of variables does not match number of values")
791791
vals = zeros(parent(A[1]), nvars(parent(a2)))

0 commit comments

Comments
 (0)