summaryrefslogtreecommitdiff
path: root/lib/scalaires.c
diff options
context:
space:
mode:
authorbiouman <biouman>2001-04-30 01:39:32 +0000
committerbiouman <biouman>2001-04-30 01:39:32 +0000
commit9636d6739ebf330ef3fcc41ae838068e600c140b (patch)
treed7cc62a3ed7ffed7387e5f6485ab3b2a3f4b0e08 /lib/scalaires.c
parent96ce5e4e35c13d86f0154b23eb256c2acbcbd705 (diff)
*** empty log message ***
Diffstat (limited to 'lib/scalaires.c')
-rw-r--r--lib/scalaires.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/scalaires.c b/lib/scalaires.c
index 14b3db2..7a97866 100644
--- a/lib/scalaires.c
+++ b/lib/scalaires.c
@@ -43,19 +43,19 @@ rationnel rat_constr(int num, int denom)
sgnnum = -1;
num = -num;
}
-
+
if (denom < 0) {
sgndenom = -1;
denom = -denom;
}
if (!num) {
- temp.num=0;
- temp.denom=1;
+ temp.num = 0;
+ temp.denom = 1;
} else if (denom) {
temp.num = sgnnum * sgndenom * num / pgcd(num, denom);
temp.denom = denom / pgcd(num, denom);
} else {
- exception(1,_("rat_constr: division by zero"));
+ exception(1, _("rat_constr: division by zero"));
}
return temp;