diff options
-rw-r--r-- | doc/HISTORY | 8 | ||||
-rw-r--r-- | lib/libpamcolor.c | 2 | ||||
-rw-r--r-- | version.mk | 2 |
3 files changed, 9 insertions, 3 deletions
diff --git a/doc/HISTORY b/doc/HISTORY index ef803b58..18ec8982 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -4,7 +4,13 @@ Netpbm. CHANGE HISTORY -------------- -not yet BJH Release 10.97.03 +22.02.13 BJH Release 10.97.04 + + libnetpbm, various programs: fix bug: bogus warning that a color + specified on command line cannot be represented exactly with the + maxval being used. Introduced in Netpbm 10.83 (June 2018). + +22.01.27 BJH Release 10.97.03 ppmtoapplevol: Fix bug: reads from Standard Input even when you specify the input file argument. Always broken. (ppmtoapplevol 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.", diff --git a/version.mk b/version.mk index fa737088..0464d5a6 100644 --- a/version.mk +++ b/version.mk @@ -1,3 +1,3 @@ NETPBM_MAJOR_RELEASE = 10 NETPBM_MINOR_RELEASE = 97 -NETPBM_POINT_RELEASE = 3 +NETPBM_POINT_RELEASE = 4 |