diff example/basic/spe/Twice.cc @ 626:ab866bc8a624

64bit mode compatibility on Cell
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 16 Nov 2009 11:37:26 +0900
parents 44c0bce54dcf
children
line wrap: on
line diff
--- a/example/basic/spe/Twice.cc	Mon Nov 16 10:59:55 2009 +0900
+++ b/example/basic/spe/Twice.cc	Mon Nov 16 11:37:26 2009 +0900
@@ -15,7 +15,7 @@
 
     i_data = (int*)s->get_input(rbuf, 0);
     o_data = (int*)s->get_output(wbuf, 0);
-    length = s->get_param(0);
+    length = (long)s->get_param(0);
     
     for (int i = 0; i < length; i++) {
 	o_data[i] = i_data[i] * 2;