diff --git a/coders/mvg.c b/coders/mvg.c
index 5c71658..81ef2fd 100644
--- a/coders/mvg.c
+++ b/coders/mvg.c
@@ -175,8 +175,8 @@
continue;
(void) sscanf(p,"viewbox %lf %lf %lf %lf",&bounds.x1,&bounds.y1,
&bounds.x2,&bounds.y2);
- image->columns=(unsigned long) floor((bounds.x2-bounds.x1)+0.5);
- image->rows=(unsigned long) floor((bounds.y2-bounds.y1)+0.5);
+ image->columns=(size_t) floor((bounds.x2-bounds.x1)+0.5);
+ image->rows=(size_t) floor((bounds.y2-bounds.y1)+0.5);
break;
}
}
@@ -187,8 +187,8 @@
DefaultResolution;
draw_info->affine.sy=image->y_resolution == 0.0 ? 1.0 : image->y_resolution/
DefaultResolution;
- image->columns=(unsigned long) (draw_info->affine.sx*image->columns);
- image->rows=(unsigned long) (draw_info->affine.sy*image->rows);
+ image->columns=(size_t) (draw_info->affine.sx*image->columns);
+ image->rows=(size_t) (draw_info->affine.sy*image->rows);
if (SetImageBackgroundColor(image) == MagickFalse)
{
InheritException(exception,&image->exception);
@@ -236,10 +236,10 @@
%
% The format of the RegisterMVGImage method is:
%
-% unsigned long RegisterMVGImage(void)
+% size_t RegisterMVGImage(void)
%
*/
-ModuleExport unsigned long RegisterMVGImage(void)
+ModuleExport size_t RegisterMVGImage(void)
{
MagickInfo
*entry;