summaryrefslogtreecommitdiff
path: root/magick/composite.c
diff options
context:
space:
mode:
Diffstat (limited to 'magick/composite.c')
-rw-r--r--magick/composite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/magick/composite.c b/magick/composite.c
index 38414de..1e25014 100644
--- a/magick/composite.c
+++ b/magick/composite.c
@@ -3299,7 +3299,7 @@ CompositeImage(Image *canvas_image,
y_displace=(vertical_scale*(p->opacity-
(((double) MaxRGB+1.0)/2)))/(((double) MaxRGB+1.0)/2);
if (InterpolateViewColor(AccessDefaultCacheView(canvas_image),r,
- x_offset+x+x_displace,y_offset+y+y_displace,
+ x_offset+(size_t) x+x_displace,y_offset+(size_t) y+y_displace,
&canvas_image->exception) == MagickFail)
{
status=MagickFail;