mlxml: Fix pointed target signedness.

xml-c.c: In function 'mllib_xml_to_string':
xml-c.c:199:47: error: pointer targets in passing argument 2 of 'caml_alloc_initialized_string' differ in signedness [-Werror=pointer-sign]
  199 |   strv = caml_alloc_initialized_string (size, mem);
      |                                               ^~~
      |                                               |
      |                                               xmlChar * {aka unsigned char *}

(cherry picked from commit ea10827b4cfb3cfe5f782421c01d2902e5f73f90)
This commit is contained in:
Richard W.M. Jones
2020-02-06 10:22:42 +00:00
parent 17df30b820
commit 8eb9f06b15

View File

@@ -196,7 +196,7 @@ mllib_xml_to_string (value docv, value formatv)
doc = docptr_val (docv);
xmlDocDumpFormatMemory (doc, &mem, &size, Bool_val (formatv));
strv = caml_alloc_initialized_string (size, mem);
strv = caml_alloc_initialized_string (size, (const char *) mem);
free (mem);
CAMLreturn (strv);