From a9c249d3113a65965758553f8628388aa80faf54 Mon Sep 17 00:00:00 2001 From: mike Date: Sat, 16 Mar 2024 08:38:08 +1000 Subject: [PATCH] fix format specifier type --- 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 7297b64..3de016b 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 %i\n", idx); + error("Error writing to file at element %ld\n", idx); } fputc('\n', file);