]> granicus.if.org Git - graphviz/commitdiff
fix cast warning
authorellson <devnull@localhost>
Thu, 4 Oct 2007 10:42:23 +0000 (10:42 +0000)
committerellson <devnull@localhost>
Thu, 4 Oct 2007 10:42:23 +0000 (10:42 +0000)
plugin/pango/gvrender_pango.c

index f2fbadeab700b6b015c7378aceefcaabef45a889..44b813f62115f3da9f08efb12ea0aeab46c4f959 100644 (file)
@@ -118,7 +118,7 @@ extern size_t gvdevice_write(GVJ_t * job, char *s, unsigned int len);
 static cairo_status_t
 writer (void *closure, const unsigned char *data, unsigned int length)
 {
-    if (length == gvdevice_write((GVJ_t *)closure, data, length))
+    if (length == gvdevice_write((GVJ_t *)closure, (char*)data, length))
        return CAIRO_STATUS_SUCCESS;
     return CAIRO_STATUS_WRITE_ERROR;
 }