From 56accb4d73ff590200ceb6a22b4ca3536202f6bd Mon Sep 17 00:00:00 2001 From: giraffedata Date: Tue, 8 Nov 2011 16:10:04 +0000 Subject: Fix wrong output for -multiply git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1593 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- other/pamarith.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'other') 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); } -- cgit 1.4.1