Skip to content

Commit

Permalink
Conform with Julia v1.12.X's definition of gcdx
Browse files Browse the repository at this point in the history
  • Loading branch information
albinahlback committed Apr 26, 2024
1 parent 09c3bef commit f9d4f6d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/flint/fmpz.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1275,8 +1275,10 @@ Return a tuple $g, s, t$ such that $g$ is the greatest common divisor of $a$
and $b$ and integers $s$ and $t$ such that $g = as + bt$.
"""
function gcdx(a::ZZRingElem, b::ZZRingElem)
# Just to conform with Julia's definition
a == b == 0 && return zero(ZZ), one(ZZ), zero(ZZ)
if VERSION < v"1.12.0"
# Just to conform with Julia's definition
a == b == 0 && return zero(ZZ), one(ZZ), zero(ZZ)
end

d = ZZ()
x = ZZ()
Expand Down

0 comments on commit f9d4f6d

Please sign in to comment.