From 88700bca9f8a3918f7c06a612f4d57743a387785 Mon Sep 17 00:00:00 2001 From: mike Date: Sat, 16 Mar 2024 17:24:10 +1000 Subject: [PATCH] address format issues on windows --- src/geojson-parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/geojson-parse.c b/src/geojson-parse.c index 37413b1..987107b 100644 --- a/src/geojson-parse.c +++ b/src/geojson-parse.c @@ -1561,7 +1561,7 @@ SEXP parse_geojson_str_(SEXP str_, SEXP geo_opts_, SEXP parse_opts_) { //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if (doc == NULL) { output_verbose_error(str, err); - error("Error parsing JSON: %s code: %u at position: %ld\n", err.msg, err.code, err.pos); + error("Error parsing JSON: %s code: %u at position: %ld\n", err.msg, err.code, (long)err.pos); } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1601,7 +1601,7 @@ SEXP parse_geojson_file_(SEXP filename_, SEXP geo_opts_, SEXP parse_opts_) { //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if (doc == NULL) { error("Error parsing JSON file '%s': %s code: %u at position: %ld\n", - filename, err.msg, err.code, err.pos); + filename, err.msg, err.code, (long)err.pos); } //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~