Skip to content

Commit

Permalink
fuzzy equality check
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jan 17, 2022
1 parent 08dd651 commit 0256b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/gif.c
Original file line number Diff line number Diff line change
Expand Up @@ -1749,7 +1749,7 @@ static MagickBooleanType WriteGIFImage(const ImageInfo *image_info,Image *image)
(void) WriteBlobByte(image,(unsigned char) (opacity >= 0 ? opacity :
0));
(void) WriteBlobByte(image,(unsigned char) 0x00);
if ((image->gamma != 1.0f/2.2f))
if (fabs(image->gamma - 1.0f/2.2f) > MagickEpsilon)
{
char
attributes[MaxTextExtent];
Expand Down

0 comments on commit 0256b55

Please sign in to comment.