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/Makefile.am | 2 +- lib/scalaires.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/Makefile.am b/lib/Makefile.am index 95713a0..a893ab5 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -1,6 +1,6 @@ localedir = $(datadir)/locale DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ -AM_CFLAGS = -O3 -Wall -Wstrict-prototypes $(CFLAGS) +AM_CFLAGS = -O3 -DDEBUG -Wall -Wstrict-prototypes $(CFLAGS) INCLUDES = -I. -I.. -I$(includedir) -I../include lib_LTLIBRARIES = libPolynom.la 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