diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2011-11-08 16:11:44 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2011-11-08 16:11:44 +0000 |
commit | e9fdfef8cef418dbf3c8bf9315d4810275cd4dda (patch) | |
tree | f74d5a7ad0bc13350c7733e08768416194a115c3 /other/pamarith.c | |
parent | c25579ffb511c694e7d7d658476bcbd47cb0ea57 (diff) | |
download | netpbm-mirror-e9fdfef8cef418dbf3c8bf9315d4810275cd4dda.tar.gz netpbm-mirror-e9fdfef8cef418dbf3c8bf9315d4810275cd4dda.tar.xz netpbm-mirror-e9fdfef8cef418dbf3c8bf9315d4810275cd4dda.zip |
Release 10.56.03
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@1594 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'other/pamarith.c')
-rw-r--r-- | other/pamarith.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/other/pamarith.c b/other/pamarith.c index f1e8d7cb..a53029da 100644 --- a/other/pamarith.c +++ b/other/pamarith.c @@ -541,7 +541,7 @@ sampleProduct(sample const operands[], double product; for (i = 0, product = 1.0; i < operandCt; ++i) { - product *= ((double)operands[0]/maxval); + product *= ((double)operands[i]/maxval); } return (sample)(product * maxval + 0.5); } |