]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/json.c (json_make_string): Add missing cast.
authorPhilipp Stephani <phst@google.com>
Tue, 23 Apr 2019 13:31:04 +0000 (15:31 +0200)
committerPhilipp Stephani <phst@google.com>
Tue, 23 Apr 2019 13:31:17 +0000 (15:31 +0200)
src/json.c

index 33e8125f981f93e53bfe269e2bdfa5906c0ffc97..7d6d5314270124a65c14881296046767f98bc0ed 100644 (file)
@@ -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;
     }