summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorbiouman <biouman>2001-04-28 23:07:37 +0000
committerbiouman <biouman>2001-04-28 23:07:37 +0000
commit842576279c3d573da0f82d06523864c34190ce56 (patch)
tree551324021c82dbee4be9a69c701aaebf773c9ebe /lib
parentabd0d6dc5a56768f30232a0588b0c663f2acbe4f (diff)
*** empty log message ***
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am2
-rw-r--r--lib/scalaires.c6
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)