From d9d592dd44f5782bb66da528d223085a863ab1e2 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Tue, 23 Apr 2019 15:31:04 +0200 Subject: [PATCH] * src/json.c (json_make_string): Add missing cast. --- src/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json.c b/src/json.c index 33e8125f981..7d6d5314270 100644 --- a/src/json.c +++ b/src/json.c @@ -237,7 +237,7 @@ json_make_string (const char *data, ptrdiff_t size) struct coding_system coding; setup_coding_system (Qutf_8_unix, &coding); coding.mode |= CODING_MODE_LAST_BLOCK; - coding.source = data; + coding.source = (const unsigned char *) data; decode_coding_object (&coding, Qnil, 0, 0, size, size, Qt); return coding.dst_object; } -- 2.39.2