blob[*length]='\0';
return(blob);
}
- *length=(size_t) MagickMin(offset,extent);
+ *length=(size_t) MagickMin(offset,(ssize_t) extent);
blob=(unsigned char *) NULL;
if (~(*length) >= (MagickPathExtent-1))
blob=(unsigned char *) AcquireQuantumMemory(*length+MagickPathExtent,
assert(geometry != (RectangleInfo *) NULL);
assert(offset != (OffsetInfo *) NULL);
if ((offset->x < 0) || (offset->y < 0) ||
- ((offset->x+geometry->width) > (ssize_t) image->columns) ||
- ((offset->y+geometry->height) > (ssize_t) image->rows))
+ ((offset->x+(ssize_t) geometry->width) > (ssize_t) image->columns) ||
+ ((offset->y+(ssize_t) geometry->height) > (ssize_t) image->rows))
ThrowBinaryException(OptionError,"GeometryDoesNotContainImage",
image->filename);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
xml[length]='\0';
return(xml);
}
- length=(size_t) MagickMin(offset,extent);
+ length=(size_t) MagickMin(offset,(ssize_t) extent);
xml=(char *) NULL;
if (~length >= (MagickPathExtent-1))
xml=(char *) AcquireQuantumMemory(length+MagickPathExtent,sizeof(*xml));