From a40fff3ad3ed1e6af8af93c71026a7ed00530c1d Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Tue, 26 Mar 2019 10:01:04 +0100 Subject: [PATCH] Removed invalid typecast. --- coders/png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/png.c b/coders/png.c index 76e36126f..5957c576f 100644 --- a/coders/png.c +++ b/coders/png.c @@ -2845,7 +2845,7 @@ static Image *ReadOnePNGImage(MngInfo *mng_info, if (png_get_gAMA(ping,ping_info,&file_gamma)) { - image->gamma=(float) file_gamma; + image->gamma=file_gamma; if (logging != MagickFalse) (void) LogMagickEvent(CoderEvent,GetMagickModule(), " Reading PNG gAMA chunk: gamma: %f",file_gamma); -- 2.50.1