Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Feb 12, 2021
1 parent dfd1d7f commit 0824c17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion magick/list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions magick/vision.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 0824c17

Please sign in to comment.