]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Mon, 14 May 2018 00:40:05 +0000 (20:40 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 14 May 2018 00:40:05 +0000 (20:40 -0400)
MagickCore/draw.c

index 02c8a6275bcba3c55cb9fd45b973eb21842cab97..952700b094ffae1511245adcdf94e46234ae1133 100644 (file)
@@ -523,11 +523,11 @@ static PolygonInfo *ConvertPathToPolygon(const PathInfo *path_info)
   points=(PointInfo *) NULL;
   (void) memset(&point,0,sizeof(point));
   (void) memset(&bounds,0,sizeof(bounds));
-  polygon_info->edges[edge].number_points=n;
+  polygon_info->edges[edge].number_points=(size_t) n;
   polygon_info->edges[edge].scanline=0.0;
   polygon_info->edges[edge].highwater=0;
   polygon_info->edges[edge].ghostline=ghostline;
-  polygon_info->edges[edge].direction=direction;
+  polygon_info->edges[edge].direction=(ssize_t) direction;
   polygon_info->edges[edge].points=points;
   polygon_info->edges[edge].bounds=bounds;
   polygon_info->number_edges=0;