for (j = 0; j < 2; j++)
{
if (j == 0)
- status = (png_get_text(ping,ping_info,&text,&num_text) != 0);
+ status = png_get_text(ping,ping_info,&text,&num_text) != 0 ? MagickTrue : MagickFalse;
else
- status = (png_get_text(ping,end_info,&text,&num_text) != 0);
+ status = png_get_text(ping,end_info,&text,&num_text) != 0 ? MagickTrue : MagickFalse;
if (status != MagickFalse)
for (i=0; i < (ssize_t) num_text; i++)
if (image_depth > MAGICKCORE_QUANTUM_DEPTH)
image_depth=MAGICKCORE_QUANTUM_DEPTH;
- if ((image_colors == 0) || ((ssize_t) image_colors-1 > MaxColormapSize))
+ if ((image_colors == 0) || ((ssize_t) (image_colors-1) > MaxColormapSize))
image_colors=(int) (one << image_depth);
if (image_depth > 8)
** It returns the number of pixels that changed between the images
** for result convergence determination.
*/
-static size_t MorphologyPrimitive(const Image *image, Image *result_image,
+static ssize_t MorphologyPrimitive(const Image *image, Image *result_image,
const MorphologyMethod method, const ChannelType channel,
const KernelInfo *kernel,const double bias,ExceptionInfo *exception)
{
result_image->type=image->type;
q_view=DestroyCacheView(q_view);
p_view=DestroyCacheView(p_view);
- return(status ? (size_t) changed : 0);
+ return(status ? (ssize_t) changed : 0);
}
/*
** Because of this 'iterative' handling this function can not make use
** of multi-threaded, parellel processing.
*/
-static size_t MorphologyPrimitiveDirect(const Image *image,
+static ssize_t MorphologyPrimitiveDirect(const Image *image,
const MorphologyMethod method, const ChannelType channel,
const KernelInfo *kernel,ExceptionInfo *exception)
{
*/
if (status == MagickFalse)
break;
- p=GetCacheViewVirtualPixels(virt_view, -offx, y-offy, virt_width, offy+1,
+ p=GetCacheViewVirtualPixels(virt_view, -offx, y-offy, virt_width, (size_t) offy+1,
exception);
q=GetCacheViewAuthenticPixels(auth_view, 0, y, image->columns, 1,
exception);
q_indexes=GetCacheViewAuthenticIndexQueue(auth_view);
/* offset to origin in 'p'. while 'q' points to it directly */
- r = virt_width*offy + offx;
+ r = (ssize_t) virt_width*offy + offx;
for (x=0; x < (ssize_t) image->columns; x++)
{
** Only the bottom half of the kernel will be processes as we
** up the image.
*/
- p=GetCacheViewVirtualPixels(virt_view, -offx, y, virt_width, kernel->y+1,
+ p=GetCacheViewVirtualPixels(virt_view, -offx, y, virt_width, (size_t) kernel->y+1,
exception);
q=GetCacheViewAuthenticPixels(auth_view, 0, y, image->columns, 1,
exception);
} /* y */
auth_view=DestroyCacheView(auth_view);
virt_view=DestroyCacheView(virt_view);
- return(status ? (ssize_t)changed : -1);
+ return(status ? (ssize_t) changed : -1);
}
/* Apply a Morphology by calling theabove low level primitive application
/* initialise for cleanup */
curr_image = (Image *) image;
curr_compose = image->compose;
+ (void) curr_compose;
work_image = save_image = rslt_image = (Image *) NULL;
reflected_kernel = (KernelInfo *) NULL;