changeset 1574:d8f25aa30cac draft

fix
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Tue, 19 Mar 2013 14:28:27 +0900
parents 2a8826934b03
children fcb6ce3ba110
files example/multiply/ppe/Multi.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/example/multiply/ppe/Multi.cc	Tue Mar 19 14:20:15 2013 +0900
+++ b/example/multiply/ppe/Multi.cc	Tue Mar 19 14:28:27 2013 +0900
@@ -16,7 +16,7 @@
     B = (float*)s->get_input(rbuf, 1);
     C = (float*)s->get_output(wbuf, 0);
 
-    long length = (long)s->get_param(1);
+    long length = (long)s->get_param(0);
     for (int i=0; i<length; i++) {
         C[i]=A[i]*B[i];
     }