Skip to content

Commit 85224a4

Browse files
committed
Make it Nemo proof
1 parent e577691 commit 85224a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/MPoly.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,8 @@ function exponent_vectors(a::MPolyRingElem{T}; inplace::Bool = false) where T <:
517517
end
518518

519519
function exponent_vectors(::Type{Vector{S}}, a::MPolyRingElem{T}; inplace::Bool = false) where {T <: RingElement, S}
520-
t = zeros(S, nvars(parent(a)))
520+
# Don't use `zeros`: If S === ZZRingElem, then all the entries would be identical
521+
t = [zero(S) for _ in 1:nvars(parent(a))]
521522
return Generic.MPolyExponentVectors(a, inplace, t)
522523
end
523524

0 commit comments

Comments
 (0)