Mercurial > hg > Members > kono > Cerium
diff example/share_task/spe/Load.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/share_task/spe/Load.cc Mon Nov 16 10:59:55 2009 +0900 +++ b/example/share_task/spe/Load.cc Mon Nov 16 11:37:26 2009 +0900 @@ -11,7 +11,7 @@ { int *idata = (int*)s->get_input(rbuf, 0); int *odata; - int length = s->get_param(0); + int length = (long)s->get_param(0); // SPU LS 内に領域確保し、データをコピー odata = (int*)s->global_alloc(DATA_ID, sizeof(int)*length);