Skip to content

Commit

Permalink
silence warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Feb 25, 2024
1 parent 94123d7 commit 4af89ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions magick/color.c
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ MagickExport void ConcatenateColorComponent(const MagickPixelPacket *pixel,
(IsLabCompatibleColorspace(pixel->colorspace) != MagickFalse))
scale=100.0f;
if (pixel->colorspace == XYZColorspace)
color/=2.55;
color/=2.55f;
break;
}
case GreenChannel:
Expand All @@ -1190,7 +1190,7 @@ MagickExport void ConcatenateColorComponent(const MagickPixelPacket *pixel,
(IsLabCompatibleColorspace(pixel->colorspace) != MagickFalse))
color-=QuantumRange/2.0f;
if (pixel->colorspace == XYZColorspace)
color/=2.55;
color/=2.55f;
break;
}
case BlueChannel:
Expand All @@ -1205,7 +1205,7 @@ MagickExport void ConcatenateColorComponent(const MagickPixelPacket *pixel,
(pixel->colorspace == LCHuvColorspace))
color*=360.0f/255.0f;
if (pixel->colorspace == XYZColorspace)
color/=2.55;
color/=2.55f;
break;
}
case AlphaChannel:
Expand Down

0 comments on commit 4af89ea

Please sign in to comment.