Skip to content

Commit ba700e4

Browse files
Improve type stability of ConformanceTests.generate_element(::MPolyRing) (#2077)
1 parent 3b8a7d4 commit ba700e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MPoly.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ function ConformanceTests.generate_element(Rx::MPolyRing)
14681468
len_bound = 8
14691469
exp_bound = rand(1:5)
14701470
len = rand(0:len_bound)
1471-
coeffs = [ConformanceTests.generate_element(R) for _ in 1:len]
1471+
coeffs = elem_type(R)[ConformanceTests.generate_element(R) for _ in 1:len]
14721472
exps = [[rand(0:exp_bound) for _ in 1:num_gens] for _ in 1:len]
14731473
return Rx(coeffs, exps)
14741474
end

0 commit comments

Comments
 (0)