changeset 6:b25035e3282d

fix
author yutaka@localhost.localdomain
date Sat, 10 Apr 2010 16:50:55 +0900
parents 39d405bc46b7
children febf899d0043
files ppe/Manager.cc
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ppe/Manager.cc	Sat Apr 10 16:29:22 2010 +0900
+++ b/ppe/Manager.cc	Sat Apr 10 16:50:55 2010 +0900
@@ -30,11 +30,11 @@
 
       fix_type(tmp, tmphead);
 
-      int *out = (int*)tmp->head->ea_out;
+      void *out = (void*)tmp->head->ea_out;
       int *in = (int*)tmp->input;
 
-      int size_in  = tmp->head->size_in;
-      int size_out = tmp->head->size_out;
+      int size_in  = tmp->head->size_in - tmp->head->pin_in;
+      int size_out = tmp->head->size_out - tmp->head->pin_out;
 
       //printf("in[%d] %f\n",i,in[i]);
       //printf("out[%d] %f\n",i,out[i]);
@@ -70,8 +70,8 @@
       int *out_spe = (int*)allocate(tmp->head->size_out);
       int *in = (int*)tmp->input;
 
-      int size_in  = tmp->head->size_in;
-      int size_out = tmp->head->size_out;
+      int size_in  = tmp->head->size_in - tmp->head->pin_in;
+      int size_out = tmp->head->size_out - tmp->head->pin_out;
 
       //printf("in[%d] %f\n",i,in[i]);
       //printf("out[%d] %f\n",i,out[i]);