diff options
author | Xavier Leroy <xavier.leroy@inria.fr> | 1998-06-22 12:43:41 +0000 |
---|---|---|
committer | Xavier Leroy <xavier.leroy@inria.fr> | 1998-06-22 12:43:41 +0000 |
commit | ae0c8b96d7b66e5a00bd215c2af7102da6b1b9dd (patch) | |
tree | 258468a2c962e78582a57283bfcb16ee13752ac0 | |
parent | 5ac8854085a397a80c3e5864451687eaa9fbd043 (diff) |
Cosmetique dans div_float
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1989 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r-- | byterun/floats.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/byterun/floats.c b/byterun/floats.c index 75e46a375..63ef4e925 100644 --- a/byterun/floats.c +++ b/byterun/floats.c @@ -141,8 +141,7 @@ value mul_float(value f, value g) /* ML */ value div_float(value f, value g) /* ML */ { - double dg = Double_val(g); - return copy_double(Double_val(f) / dg); + return copy_double(Double_val(f) / Double_val(g)); } value exp_float(value f) /* ML */ @@ -165,7 +164,6 @@ value frexp_float(value f) /* ML */ int exponent; value res; value mantissa = copy_double(frexp (Double_val(f), &exponent)); - Begin_root(mantissa); res = alloc_tuple(2); Field(res, 0) = mantissa; |