Skip to content

Commit

Permalink
use ptrdiff_t where appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Nov 10, 2024
1 parent 2794ae7 commit dda110f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions magick/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -6246,7 +6246,7 @@ static MagickBooleanType TraceArcPath(MVGInfo *mvg_info,const PointInfo start,
status&=TraceBezier(mvg_info,4);
if (status == 0)
break;
p=(*mvg_info->primitive_info)+mvg_info->offset;
p=(*mvg_info->primitive_info)+(ptrdiff_t) mvg_info->offset;
mvg_info->offset+=p->coordinates;
p+=(ptrdiff_t) p->coordinates;
}
Expand Down Expand Up @@ -7100,35 +7100,35 @@ static MagickBooleanType TraceRoundRectangle(MVGInfo *mvg_info,
degrees.y=360.0;
if (TraceEllipse(mvg_info,point,arc,degrees) == MagickFalse)
return(MagickFalse);
p=(*mvg_info->primitive_info)+mvg_info->offset;
p=(*mvg_info->primitive_info)+(ptrdiff_t) mvg_info->offset;
mvg_info->offset+=p->coordinates;
point.x=start.x+segment.x-arc.x;
point.y=start.y+segment.y-arc.y;
degrees.x=0.0;
degrees.y=90.0;
if (TraceEllipse(mvg_info,point,arc,degrees) == MagickFalse)
return(MagickFalse);
p=(*mvg_info->primitive_info)+mvg_info->offset;
p=(*mvg_info->primitive_info)+(ptrdiff_t) mvg_info->offset;
mvg_info->offset+=p->coordinates;
point.x=start.x+arc.x;
point.y=start.y+segment.y-arc.y;
degrees.x=90.0;
degrees.y=180.0;
if (TraceEllipse(mvg_info,point,arc,degrees) == MagickFalse)
return(MagickFalse);
p=(*mvg_info->primitive_info)+mvg_info->offset;
p=(*mvg_info->primitive_info)+(ptrdiff_t) mvg_info->offset;
mvg_info->offset+=p->coordinates;
point.x=start.x+arc.x;
point.y=start.y+arc.y;
degrees.x=180.0;
degrees.y=270.0;
if (TraceEllipse(mvg_info,point,arc,degrees) == MagickFalse)
return(MagickFalse);
p=(*mvg_info->primitive_info)+mvg_info->offset;
p=(*mvg_info->primitive_info)+(ptrdiff_t) mvg_info->offset;
mvg_info->offset+=p->coordinates;
if (CheckPrimitiveExtent(mvg_info,PrimitiveExtentPad) == MagickFalse)
return(MagickFalse);
p=(*mvg_info->primitive_info)+mvg_info->offset;
p=(*mvg_info->primitive_info)+(ptrdiff_t) mvg_info->offset;
if (TracePoint(p,(*mvg_info->primitive_info+offset)->point) == MagickFalse)
return(MagickFalse);
p+=(ptrdiff_t) p->coordinates;
Expand Down

0 comments on commit dda110f

Please sign in to comment.