summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2008-08-02 11:02:28 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2008-08-02 11:02:28 +0000
commit97c2c3c328a1de2470c1ae38c7314d59e7338bf2 (patch)
tree5bc41096539f9ae1e3a0fc0bccc901951d3b7aee
parent481d738a1e914d83be0a62033d212ffd23d72fd6 (diff)
PR#4503: classify_float wrong on ARM
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8976 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--byterun/floats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/byterun/floats.c b/byterun/floats.c
index e94a4c506..c708cbe0d 100644
--- a/byterun/floats.c
+++ b/byterun/floats.c
@@ -394,7 +394,7 @@ CAMLprim value caml_classify_float(value vd)
#else
union {
double d;
-#ifdef ARCH_BIG_ENDIAN
+#if defined(ARCH_BIG_ENDIAN) || (defined(__arm__) && !defined(__ARM_EABI__))
struct { uint32 h; uint32 l; } i;
#else
struct { uint32 l; uint32 h; } i;