diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-11-22 18:41:45 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-11-22 18:41:45 +0000 |
commit | f3316d36985ad16f1d82aea44eddc311cb739d6d (patch) | |
tree | 82f3a6c450ec8394baa9b588962d4497e7a704a4 /analyzer | |
parent | 09bcfca6b8a98a40a1895ae8a66dd3fc1344a966 (diff) | |
download | netpbm-mirror-f3316d36985ad16f1d82aea44eddc311cb739d6d.tar.gz netpbm-mirror-f3316d36985ad16f1d82aea44eddc311cb739d6d.tar.xz netpbm-mirror-f3316d36985ad16f1d82aea44eddc311cb739d6d.zip |
Fix %g for platform without vasprintf (but scores of %f still exist)
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2320 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'analyzer')
-rw-r--r-- | analyzer/pnmhistmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/analyzer/pnmhistmap.c b/analyzer/pnmhistmap.c index f41b0d51..fc1bbbde 100644 --- a/analyzer/pnmhistmap.c +++ b/analyzer/pnmhistmap.c @@ -426,7 +426,7 @@ ppmHist(FILE * const ifP, clipHistogramAll(hist, histWidth, hmax); vscale = (double) histHeight / hmax; - if (verbose) + if (verbose && pm_have_float_format()) pm_message("Done: height = %u, vertical scale factor = %g", hmax, vscale); @@ -477,7 +477,7 @@ reportScale(unsigned int const histWidth, double const hscale = (float)(histWidth-1) / (range-1); - if (hscale - 1.0 < epsilon && verbose) + if (hscale - 1.0 < epsilon && verbose && pm_have_float_format()) pm_message("Horizontal scale factor: %g", hscale); } |