]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Mon, 14 May 2018 00:52:01 +0000 (20:52 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 14 May 2018 00:52:01 +0000 (20:52 -0400)
MagickWand/drawing-wand.c

index 086a9443265f84c0f9fce34f5c22a53bd4e33ec9..4ced8b77b4e2044bb990a1e92a042df7b6c49d45 100644 (file)
@@ -6329,8 +6329,8 @@ WandExport MagickBooleanType DrawSetVectorGraphics(DrawingWand *wand,
 
           weight=ParseCommandOption(MagickWeightOptions,MagickFalse,value);
           if (weight == -1)
-            weight=StringToUnsignedLong(value);
-          CurrentContext->weight=weight;
+            weight=(ssize_t) StringToUnsignedLong(value);
+          CurrentContext->weight=(size_t) weight;
         }
     }
   child=GetXMLTreeChild(xml_info,"gravity");
@@ -6464,8 +6464,8 @@ WandExport MagickBooleanType DrawSetVectorGraphics(DrawingWand *wand,
 
           weight=ParseCommandOption(MagickWeightOptions,MagickFalse,value);
           if (weight == -1)
-            weight=StringToUnsignedLong(value);
-          CurrentContext->stroke_width=(size_t) weight;
+            weight=(ssize_t) StringToUnsignedLong(value);
+          CurrentContext->stroke_width=(double) weight;
         }
     }
   child=GetXMLTreeChild(xml_info,"text-align");