From 744672b90fe21495913fc321633bc6d103e3cb6b Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 2 May 2001 10:44:20 +0000 Subject: Pouet --- lib/scalaires.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lib/scalaires.c') diff --git a/lib/scalaires.c b/lib/scalaires.c index d55c4b2..b9af70a 100644 --- a/lib/scalaires.c +++ b/lib/scalaires.c @@ -16,7 +16,7 @@ #define PRECISION 1E6 typedisplay display; -static int pgcd(int a, int b) +static unsigned long long pgcd(unsigned long long a, unsigned long long b) { if (a < b) return pgcd(b, a); @@ -35,7 +35,7 @@ rationnel rat_constr_zero(void) } -rationnel rat_constr(int num, int denom) +rationnel rat_constr(unsigned long long num, unsigned long long denom) { /* cree une fraction */ rationnel temp; int sgnnum = 1, sgndenom = 1; @@ -64,10 +64,7 @@ rationnel rat_constr(int num, int denom) rationnel rat_constr_from_double(double flt) { /* cree une fraction a partir d un double */ - return rat_constr(floor(flt * PRECISION), PRECISION); - - } void rat_destruct(rationnel rat) -- cgit v1.2.3