diff options
author | biouman <biouman> | 2001-04-28 23:07:37 +0000 |
---|---|---|
committer | biouman <biouman> | 2001-04-28 23:07:37 +0000 |
commit | 842576279c3d573da0f82d06523864c34190ce56 (patch) | |
tree | 551324021c82dbee4be9a69c701aaebf773c9ebe /lib | |
parent | abd0d6dc5a56768f30232a0588b0c663f2acbe4f (diff) |
*** empty log message ***
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile.am | 2 | ||||
-rw-r--r-- | lib/scalaires.c | 6 |
2 files changed, 4 insertions, 4 deletions
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) |