From: Cristy Date: Mon, 14 May 2018 00:52:01 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.7-33~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc9cbd1c5424785d878e0c532054541aff23eade;p=imagemagick ... --- diff --git a/MagickWand/drawing-wand.c b/MagickWand/drawing-wand.c index 086a94432..4ced8b77b 100644 --- a/MagickWand/drawing-wand.c +++ b/MagickWand/drawing-wand.c @@ -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");