summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2003-03-20 15:07:44 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2003-03-20 15:07:44 +0000
commitc17f3fbb73fb840cda1f75e065ca83aad29f1f60 (patch)
tree98d60ca16ef19468f8dfaed6b6e30922db23f205
parente4476bbc30e886b3777f6fee788f245ffdce81c5 (diff)
Probleme d'alignement dans int64_to_float (PR#1428)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5444 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--byterun/ints.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/byterun/ints.c b/byterun/ints.c
index 609b93e24..208655fac 100644
--- a/byterun/ints.c
+++ b/byterun/ints.c
@@ -410,7 +410,10 @@ CAMLprim value int64_of_float(value v)
{ return copy_int64(I64_of_double(Double_val(v))); }
CAMLprim value int64_to_float(value v)
-{ return copy_double(I64_to_double(Int64_val(v))); }
+{
+ int64 i = Int64_val(v);
+ return copy_double(I64_to_double(i));
+}
CAMLprim value int64_of_int32(value v)
{ return copy_int64(I64_of_int32(Int32_val(v))); }