diff example/dependency_task/ppe/Exec.cc @ 625:60aa3f241b10

64bit mode worked on Mac OS X.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 16 Nov 2009 10:59:55 +0900
parents 44c0bce54dcf
children
line wrap: on
line diff
--- a/example/dependency_task/ppe/Exec.cc	Sun Nov 15 04:56:09 2009 +0900
+++ b/example/dependency_task/ppe/Exec.cc	Mon Nov 16 10:59:55 2009 +0900
@@ -10,8 +10,8 @@
 {
     int *idata = (int*)s->get_input(rbuf, 0);
     int *odata = (int*)s->get_output(wbuf, 0);
-    int length = s->get_param(0);
-    int calnum = s->get_param(1);
+    long length = (long)s->get_param(0);
+    long calnum = (long)s->get_param(1);
 
     for (int i = 0; i < length; i++) {
 	odata[i] = idata[i] + calnum;