about summary refs log tree commit diff
path: root/analyzer/pgmhist.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-03-01 18:29:02 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-03-01 18:29:02 +0000
commit8846d0a962210912609fb4c1be2c721ef5a3d7e8 (patch)
tree06e7b06068ff1aa1bac554145c0d6fb5bfa968c3 /analyzer/pgmhist.c
parent499bb292ba97f3d8b63582b087a21f11c5e4c0db (diff)
downloadnetpbm-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.c8
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);