summaryrefslogtreecommitdiffstats
path: root/byterun/sys.c
diff options
context:
space:
mode:
authorDamien Doligez <damien.doligez-inria.fr>2012-03-08 19:52:03 +0000
committerDamien Doligez <damien.doligez-inria.fr>2012-03-08 19:52:03 +0000
commit6c24f4f90b23e8c4536281d31461adfe5a15b739 (patch)
tree29f6c4af8052800cc7d0eafb9650c6be8e90a2e5 /byterun/sys.c
parent1fb4007ece64b1d59e16d7a84639fce1dd69ed45 (diff)
merge version 3.12 from 3.12.1 to r12205
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12210 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/sys.c')
-rw-r--r--byterun/sys.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/byterun/sys.c b/byterun/sys.c
index 0b18cc0c0..dcc290756 100644
--- a/byterun/sys.c
+++ b/byterun/sys.c
@@ -320,9 +320,14 @@ CAMLprim value caml_sys_get_config(value unit)
CAMLlocal2 (result, ostype);
ostype = caml_copy_string(OCAML_OS_TYPE);
- result = caml_alloc_small (2, 0);
+ result = caml_alloc_small (3, 0);
Field(result, 0) = ostype;
Field(result, 1) = Val_long (8 * sizeof(value));
+#ifdef ARCH_BIG_ENDIAN
+ Field(result, 2) = Val_true;
+#else
+ Field(result, 2) = Val_false;
+#endif
CAMLreturn (result);
}