Skip to content

Commit

Permalink
Update according to comment by Max
Browse files Browse the repository at this point in the history
Before, it might have happened that the command `R * ZZRingElem(2)` fails while `R * big(2)` succeeds.
  • Loading branch information
paemurru committed Jun 18, 2024
1 parent 37bb59a commit 1724b1d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Ideal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@
# are implemented by anyone implementing ideals for AbstractAlgebra rings.
# The functions in this file extend the interface for `ideal`.

function *(x::RingElement, R::Ring)
return ideal(R, x)
end

function *(R::Ring, x::RingElement)
return ideal(R, x)
end

function *(R::Ring, x::Any)
return ideal(R, R(x))

Check warning on line 14 in src/Ideal.jl

View check run for this annotation

Codecov / codecov/patch

src/Ideal.jl#L13-L14

Added lines #L13 - L14 were not covered by tests
end
Expand Down

0 comments on commit 1724b1d

Please sign in to comment.