summaryrefslogtreecommitdiffstats
path: root/byterun/printexc.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2011-12-21 16:31:01 +0000
committerXavier Leroy <xavier.leroy@inria.fr>2011-12-21 16:31:01 +0000
commitac0aa0778d1c2fde73d4f1e9f82c609290eb7955 (patch)
tree9755b832537ced847fd668063c935256e21c67a6 /byterun/printexc.c
parent253e88bc67dc630a7a5dcbccb3346b5c02cd3e58 (diff)
PR#5179: giant steps towards a Mingw64 port.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11927 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'byterun/printexc.c')
-rw-r--r--byterun/printexc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/byterun/printexc.c b/byterun/printexc.c
index f50853d90..e891d9c67 100644
--- a/byterun/printexc.c
+++ b/byterun/printexc.c
@@ -73,7 +73,7 @@ CAMLexport char * caml_format_exception(value exn)
if (i > start) add_string(&buf, ", ");
v = Field(bucket, i);
if (Is_long(v)) {
- sprintf(intbuf, "%ld", Long_val(v));
+ sprintf(intbuf, "%" ARCH_INTNAT_PRINTF_FORMAT "d", Long_val(v));
add_string(&buf, intbuf);
} else if (Tag_val(v) == String_tag) {
add_char(&buf, '"');