]> granicus.if.org Git - graphviz/commitdiff
fix some casts to incorrect target type
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 21 Apr 2021 01:16:05 +0000 (18:16 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 27 Apr 2021 03:41:50 +0000 (20:41 -0700)
Removes two -Wsign-conversion warnings.

plugin/core/gvrender_core_vml.c

index 03ae4d048a57fb01dd61a572da2ca40c270d42dd..088c6f02cb863c86504eb2d584f33f46e5ccc677 100644 (file)
@@ -255,8 +255,8 @@ static void vml_begin_graph(GVJ_t * job)
     obj_state_t *obj = job->obj;
     char *name;
 
-    graphHeight =(int)(job->bb.UR.y - job->bb.LL.y);
-    graphWidth  =(int)(job->bb.UR.x - job->bb.LL.x);
+    graphHeight = (unsigned)(job->bb.UR.y - job->bb.LL.y);
+    graphWidth  = (unsigned)(job->bb.UR.x - job->bb.LL.x);
 
     gvputs(job, "<HEAD>");
     gvputs(job, "<META http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");