From: cristy Date: Sat, 31 Mar 2012 01:59:04 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~5925 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=982f0bbbc4ab61da0d3958fd25e837eb7ce64651;p=imagemagick --- diff --git a/coders/xcf.c b/coders/xcf.c index ee1b7d618..528da3dbc 100644 --- a/coders/xcf.c +++ b/coders/xcf.c @@ -1377,7 +1377,7 @@ static Image *ReadXCFImage(const ImageInfo *image_info,ExceptionInfo *exception) */ image->next=layer_info[number_layers-2].image; layer_info[number_layers-2].image->previous=image; - for (j=number_layers-2; j>=0; j--) + for (j=(ssize_t) number_layers-2; j>=0; j--) { if (j > 0) layer_info[j].image->next=layer_info[j-1].image;