diff --git a/magick/list.c b/magick/list.c index ced288c594..d78b15f931 100644 --- a/magick/list.c +++ b/magick/list.c @@ -270,7 +270,7 @@ MagickExport Image *CloneImages(const Image *images,const char *scenes, step=1; if (artifact != (const char *) NULL) { - step=StringToLong(artifact); + step=(ssize_t) StringToLong(artifact); if (step == 0) step=1; } diff --git a/magick/vision.c b/magick/vision.c index 87541d2c47..ab0e9c0dee 100644 --- a/magick/vision.c +++ b/magick/vision.c @@ -467,7 +467,7 @@ MagickExport Image *ConnectedComponentsImage(const Image *image, max_threshold+=MagickEpsilon; artifact=GetImageArtifact(image,"connected-components:background-id"); if (artifact != (const char *) NULL) - background_id=StringToLong(artifact); + background_id=(ssize_t) StringToLong(artifact); artifact=GetImageArtifact(image,"connected-components:area-threshold"); if (artifact != (const char *) NULL) { @@ -557,7 +557,7 @@ MagickExport Image *ConnectedComponentsImage(const Image *image, /* Keep top objects. */ - top_ids=StringToLong(artifact); + top_ids=(ssize_t) StringToLong(artifact); top_objects=(CCObjectInfo *) AcquireQuantumMemory(component_image->colors, sizeof(*top_objects)); if (top_objects == (CCObjectInfo *) NULL)