double
angle,
+ coordinates,
factor,
primitive_extent;
MagickBooleanType
proceed;
- MagickSizeType
- coordinates;
-
MagickStatusType
status;
/*
Speculate how many points our primitive might consume.
*/
- coordinates=primitive_info[j].coordinates;
+ coordinates=(double) primitive_info[j].coordinates;
switch (primitive_type)
{
case RectanglePrimitive:
status=MagickFalse;
break;
}
- coordinates=(BezierQuantum*primitive_info[j].coordinates);
+ coordinates=(double) (BezierQuantum*primitive_info[j].coordinates);
break;
}
case PathPrimitive:
alpha=bounds.x2-bounds.x1;
beta=bounds.y2-bounds.y1;
radius=hypot(alpha,beta);
- coordinates=(MagickSizeType) (2*(ceil(MagickPI*radius))+6*
- BezierQuantum+360);
+ coordinates=2.0*(ceil(MagickPI*radius))+6*BezierQuantum+360.0;
break;
}
default:
}
if (coordinates > MaxBezierCoordinates)
{
- (void) ThrowMagickException(exception,GetMagickModule(),DrawError,
- "TooManyBezierCoordinates","`%s'",token);
+ (void) ThrowMagickException(exception,GetMagickModule(),
+ ResourceLimitError,"MemoryAllocationFailed","`%s'",token);
status=MagickFalse;
}
if (status == MagickFalse)
}
case PathPrimitive:
{
- coordinates=TracePath(&mvg_info,token,exception);
- if (coordinates == 0)
+ coordinates=(double) TracePath(&mvg_info,token,exception);
+ if (coordinates == 0.0)
{
status=MagickFalse;
break;