Skip to content

Commit

Permalink
Fix a missing coercion rule. Fixes #39 reported by Tommy.
Browse files Browse the repository at this point in the history
  • Loading branch information
wbhart committed Jun 15, 2016
1 parent 5967a4b commit ee44de8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/flint/nmod_poly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,8 @@ Base.promote_rule{V <: Integer}(::Type{nmod_poly}, ::Type{V}) = nmod_poly

Base.promote_rule(::Type{nmod_poly}, ::Type{fmpz}) = nmod_poly

Base.promote_rule(::Type{nmod_poly}, ::Type{GenRes{fmpz}}) = nmod_poly

###############################################################################
#
# Polynomial substitution
Expand Down

0 comments on commit ee44de8

Please sign in to comment.