diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-03-01 18:29:02 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2014-03-01 18:29:02 +0000 |
commit | 8846d0a962210912609fb4c1be2c721ef5a3d7e8 (patch) | |
tree | 06e7b06068ff1aa1bac554145c0d6fb5bfa968c3 /analyzer/pgmhist.c | |
parent | 499bb292ba97f3d8b63582b087a21f11c5e4c0db (diff) | |
download | netpbm-mirror-8846d0a962210912609fb4c1be2c721ef5a3d7e8.tar.gz netpbm-mirror-8846d0a962210912609fb4c1be2c721ef5a3d7e8.tar.xz netpbm-mirror-8846d0a962210912609fb4c1be2c721ef5a3d7e8.zip |
Release 10.65.06
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2142 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'analyzer/pgmhist.c')
-rw-r--r-- | analyzer/pgmhist.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/analyzer/pgmhist.c b/analyzer/pgmhist.c index ef0aaa33..fb16d097 100644 --- a/analyzer/pgmhist.c +++ b/analyzer/pgmhist.c @@ -352,12 +352,12 @@ main(int argc, const char ** argv) { buildHistogram(ifP, &hist, &maxval); if (cmdline.median) { - gray median; - findQuantiles(2, hist, maxval, &median); + gray median[2]; + findQuantiles(2, hist, maxval, median); if (cmdline.machine) - reportQuantilesMachineFriendly(&median, 1); + reportQuantilesMachineFriendly(median, 1); else - reportMedianHumanFriendly(median); + reportMedianHumanFriendly(median[0]); } else if (cmdline.quartile) { gray quartile[4]; findQuantiles(4, hist, maxval, quartile); |