From a58038cc201dae56aac1b55c2f8ec70724d760d1 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Mon, 31 Jan 2022 00:54:02 +0000 Subject: Fix bogus warning about color not being exactly representable git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4268 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/libpamcolor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libpamcolor.c') diff --git a/lib/libpamcolor.c b/lib/libpamcolor.c index 718df89f..cc68fe1a 100644 --- a/lib/libpamcolor.c +++ b/lib/libpamcolor.c @@ -338,7 +338,7 @@ warnIfNotExact(const char * const colorname, float const epsilon = 1.0/65536.0; - if (fabs((float)(rounded[plane] / maxval) - exact[plane]) > epsilon) { + if (fabs(((float)rounded[plane] / maxval) - exact[plane]) > epsilon) { pm_message("WARNING: Component %u of color '%s' is %f, " "which cannot be represented precisely with maxval %lu. " "Approximating as %lu.", -- cgit 1.4.1