summaryrefslogtreecommitdiff
path: root/byterun/minor_gc.c
diff options
context:
space:
mode:
authorSébastien Hinderer <Sebastien.Hinderer@inria.fr>2018-05-18 08:28:19 +0200
committerSébastien Hinderer <Sebastien.Hinderer@inria.fr>2018-05-22 09:49:51 +0200
commit51a91be319993edaac89c3550d9469f73c3a6e19 (patch)
tree41ca347f808b2edbeda6a515ee3488706ea3443d /byterun/minor_gc.c
parent477e34578e199e1a5b12327fc37c03fa773db194 (diff)
downloadocaml-51a91be319993edaac89c3550d9469f73c3a6e19.tar.gz
Make caml_fatal_error accept a variable number of arguments
This commit enhances the caml_fatal_error function so that it accepts a variable number of arguments. The other variants of this function thus become unnecessary and are removed, their calls being replaced by calls to caml_fatal_error.
Diffstat (limited to 'byterun/minor_gc.c')
-rw-r--r--byterun/minor_gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/byterun/minor_gc.c b/byterun/minor_gc.c
index 0bb7c0e0c7..fce3ae06a5 100644
--- a/byterun/minor_gc.c
+++ b/byterun/minor_gc.c
@@ -518,7 +518,7 @@ static void realloc_generic_table
caml_gc_message (0x08, msg_growing, (intnat) sz/1024);
tbl->base = caml_stat_resize_noexc (tbl->base, sz);
if (tbl->base == NULL){
- caml_fatal_error (msg_error);
+ caml_fatal_error ("%s", msg_error);
}
tbl->end = tbl->base + (tbl->size + tbl->reserve) * element_size;
tbl->threshold = tbl->base + tbl->size * element_size;