From 2aece8c5d38c32c3afbe42dec5079efe04959d4f Mon Sep 17 00:00:00 2001 From: mike Date: Sat, 16 Mar 2024 09:13:32 +1000 Subject: [PATCH] address format on windows --- src/ndjson-serialize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ndjson-serialize.c b/src/ndjson-serialize.c index 3de016b..52f3d5f 100644 --- a/src/ndjson-serialize.c +++ b/src/ndjson-serialize.c @@ -44,7 +44,7 @@ SEXP serialize_list_to_ndjson_file_(SEXP robj_, SEXP filename_, SEXP serialize_o yyjson_write_err err; bool res = yyjson_mut_write_fp(file, doc, opt.yyjson_write_flag, NULL, &err); if (!res) { - error("Error writing to file at element %ld\n", idx); + error("Error writing to file at element %ld\n", (long)idx); } fputc('\n', file);