Skip to content

Commit

Permalink
fix #274, at-PolynomialRing macro creates generic polynomials (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfourquet committed May 5, 2020
1 parent b605451 commit 2498c14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/generic/MPoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4756,7 +4756,8 @@ macro PolynomialRing(R, args...)
end
ring1 = gensym()
ring2 = gensym()
push!(exprs, :($(Expr(:tuple, esc(ring1), esc(ring2))) = PolynomialRing($(esc(R)), $(esc(all_names)))))
push!(exprs, :($(Expr(:tuple, esc(ring1), esc(ring2))) =
AbstractAlgebra.PolynomialRing($(esc(R)), $(esc(all_names)))))
vars = Symbol[]
k = gensym()
push!(exprs, :($(esc(k)) = 0))
Expand Down

0 comments on commit 2498c14

Please sign in to comment.