Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
src/sage/structure/element.pyx: Fix up
  • Loading branch information
Matthias Koeppe committed Jan 30, 2023
commit 01cded97cb2a4cdbfef84f369a6217d8917edc8f
4 changes: 2 additions & 2 deletions src/sage/structure/element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -4053,7 +4053,7 @@ cdef class PrincipalIdealDomainElement(DedekindDomainElement):
right = py_scalar_to_element(right)
if not isinstance(right, Element):
right = right.sage()
from sage.arith.misc import GCD as gcd
if not ((<Element>right)._parent is self._parent):
from sage.arith.misc import GCD as gcd
return coercion_model.bin_op(self, right, gcd)
return self._gcd(right)
Expand Down Expand Up @@ -4087,7 +4087,7 @@ cdef class PrincipalIdealDomainElement(DedekindDomainElement):
right = py_scalar_to_element(right)
if not isinstance(right, Element):
right = right.sage()
from sage.arith.functions import lcm
if not ((<Element>right)._parent is self._parent):
from sage.arith.functions import lcm
return coercion_model.bin_op(self, right, lcm)
return self._lcm(right)
Expand Down