about summary refs log tree commit diff
path: root/other
diff options
context:
space:
mode:
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);
 }