Skip to content

Commit

Permalink
Fix exponent overflow bug in RingElement class
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez authored Feb 23, 2024
1 parent d2c8520 commit f538e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/structure/element.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2700,7 +2700,7 @@ cdef class RingElement(ModuleElement):
Exponent overflow should throw an :class:`OverflowError` (:trac:`2956`)::
sage: K.<x,y> = AA[] # needs sage.rings.number_field
sage: x^(2^64 + 12345) # needs sage.rings.number_field
sage: x^(2^64 + 12345) # known bug: macos # needs sage.rings.number_field
Traceback (most recent call last):
...
OverflowError: exponent overflow (2147483648)
Expand Down

0 comments on commit f538e1a

Please sign in to comment.