From f9d4f6da64f0089d484f267c3a180c4192c02823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albin=20Ahlb=C3=A4ck?= Date: Fri, 26 Apr 2024 22:34:55 +0200 Subject: [PATCH] Conform with Julia v1.12.X's definition of gcdx --- src/flint/fmpz.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/flint/fmpz.jl b/src/flint/fmpz.jl index 02ea39fd7..e3ac1fc55 100644 --- a/src/flint/fmpz.jl +++ b/src/flint/fmpz.jl @@ -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()