From 842576279c3d573da0f82d06523864c34190ce56 Mon Sep 17 00:00:00 2001 From: biouman Date: Sat, 28 Apr 2001 23:07:37 +0000 Subject: *** empty log message *** --- lib/scalaires.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/scalaires.c') diff --git a/lib/scalaires.c b/lib/scalaires.c index c40760f..f94162a 100644 --- a/lib/scalaires.c +++ b/lib/scalaires.c @@ -10,11 +10,11 @@ #define PRECISION 1E6 static int pgcd(int a, int b) { - if (!a) - return b; if (a < b) return pgcd(b, a); - return pgcd(b, b % a); + if (!b) + return a; + return pgcd(b, a % b); } rationnel rat_constr_zero(void) -- cgit v1.2.3