Skip to content

Commit 4cadce6

Browse files
author
Cristy
committed
revert
1 parent 1a5c606 commit 4cadce6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

magick/compare.c

+3-5
Original file line numberDiff line numberDiff line change
@@ -1300,12 +1300,10 @@ static MagickBooleanType GetPeakAbsoluteDistortion(const Image *image,
13001300
rows;
13011301

13021302
ssize_t
1303-
i,
13041303
y;
13051304

13061305
status=MagickTrue;
1307-
for (i=0; i <= CompositeChannels; i++)
1308-
distortion[i]=MagickMinimumValue;
1306+
(void) memset(distortion,0,(CompositeChannels+1)*sizeof(*distortion));
13091307
rows=MagickMax(image->rows,reconstruct_image->rows);
13101308
columns=MagickMax(image->columns,reconstruct_image->columns);
13111309
image_view=AcquireVirtualCacheView(image,exception);
@@ -1342,8 +1340,8 @@ static MagickBooleanType GetPeakAbsoluteDistortion(const Image *image,
13421340
}
13431341
indexes=GetCacheViewVirtualIndexQueue(image_view);
13441342
reconstruct_indexes=GetCacheViewVirtualIndexQueue(reconstruct_view);
1345-
for (i=0; i <= CompositeChannels; i++)
1346-
channel_distortion[i]=MagickMinimumValue;
1343+
(void) memset(channel_distortion,0,(CompositeChannels+1)*
1344+
sizeof(*channel_distortion));
13471345
for (x=0; x < (ssize_t) columns; x++)
13481346
{
13491347
MagickRealType

0 commit comments

Comments
 (0)