summaryrefslogtreecommitdiffstats
path: root/byterun/ints.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2000-02-11 15:47:09 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2000-02-11 15:47:09 +0000
commit34068509c888623640b140b7aaa8299d285c21d9 (patch)
tree5ed8263749624e5f8298a451edc46925ec91bb5c /byterun/ints.c
parent1cac40336824df625d468405459febc63effd292 (diff)
Revu la configuration des entiers 64 bits
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2808 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/ints.c')
-rw-r--r--byterun/ints.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/byterun/ints.c b/byterun/ints.c
index f37240e15..afe347a78 100644
--- a/byterun/ints.c
+++ b/byterun/ints.c
@@ -241,7 +241,7 @@ value int32_of_string(value s) /* ML */
/* 64-bit integers */
-#if SIZEOF_LONG == 8 || SIZEOF_LONG_LONG == 8
+#ifdef ARCH_INT64_TYPE
static int int64_compare(value v1, value v2)
{
@@ -346,12 +346,7 @@ value int64_format(value fmt, value arg) /* ML */
char * buffer;
value res;
- buffer = parse_format(fmt,
-#if SIZEOF_LONG == 8
- "l",
-#else
- "ll",
-#endif
+ buffer = parse_format(fmt, ARCH_INT64_PRINTF_FORMAT,
format_string, default_format_buffer);
sprintf(buffer, format_string, Int64_val(arg));
res = copy_string(buffer);