about summary refs log tree commit diff
path: root/other
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2011-11-08 16:10:04 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2011-11-08 16:10:04 +0000
commit56accb4d73ff590200ceb6a22b4ca3536202f6bd (patch)
tree9ac1f91abb37e4399fb22729e9d2b7a8fdbda725 /other
parentc92f620eef7910bbedd57b457f0906fbc883b183 (diff)
downloadnetpbm-mirror-56accb4d73ff590200ceb6a22b4ca3536202f6bd.tar.gz
netpbm-mirror-56accb4d73ff590200ceb6a22b4ca3536202f6bd.tar.xz
netpbm-mirror-56accb4d73ff590200ceb6a22b4ca3536202f6bd.zip
Fix wrong output for -multiply
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1593 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'other')
-rw-r--r--other/pamarith.c2
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);
 }