diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-09-20 18:09:49 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-09-20 18:09:49 +0000 |
commit | c57fb692012684f1a5b1e84c2e31dc289ef70219 (patch) | |
tree | 857a656d751cef661e503d0c865c5996ed15377a /analyzer/pgmhist.c | |
parent | 731c59b6e76abe8c872993ecb845f8c23599188a (diff) | |
download | netpbm-mirror-c57fb692012684f1a5b1e84c2e31dc289ef70219.tar.gz netpbm-mirror-c57fb692012684f1a5b1e84c2e31dc289ef70219.tar.xz netpbm-mirror-c57fb692012684f1a5b1e84c2e31dc289ef70219.zip |
whitespace
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4671 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'analyzer/pgmhist.c')
-rw-r--r-- | analyzer/pgmhist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/analyzer/pgmhist.c b/analyzer/pgmhist.c index 1e779655..a85f0649 100644 --- a/analyzer/pgmhist.c +++ b/analyzer/pgmhist.c @@ -211,8 +211,8 @@ findQuantiles(unsigned int const n, cumCt = hist[0]; /* initial value */ for (quantSeq = 1; quantSeq <= n; ++quantSeq) { - unsigned long int const q = totalCt / n; - unsigned long int const r = totalCt % n; + unsigned long int const q = totalCt / n; + unsigned long int const r = totalCt % n; unsigned long int const quantCt = q*quantSeq + (r*quantSeq + n - 1)/n; /* This is how many pixels are (ignoring quantization) in the quantile. E.g. for the 3rd quartile, it is 3/4 of the pixels @@ -419,7 +419,7 @@ summarizeInvalidPixels(unsigned long int const hist[], Print total count of valid and invalid pixels, if there are any invalid ones. -----------------------------------------------------------------------------*/ - unsigned long int const invalidPixelCt = + unsigned long int const invalidPixelCt = mmaxval > maxval ? rcount[maxval+1] : 0; if (invalidPixelCt > 0) { |