Mercurial > hg > Members > kono > Cerium
diff example/share_task/spe/Exec.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/Exec.cc Mon Nov 16 10:59:55 2009 +0900 +++ b/example/share_task/spe/Exec.cc Mon Nov 16 11:37:26 2009 +0900 @@ -9,9 +9,9 @@ run(SchedTask *s, void *rbuf, void *wbuf) { int *idata = (int*)s->global_get(DATA_ID); - int length = s->get_param(0); - int number = s->get_param(1); - int calnum = s->get_param(2); + int length = (long)s->get_param(0); + int number = (long)s->get_param(1); + int calnum = (long)s->get_param(2); s->printf("[TASK_EXEC %02d] ", number); for (int i = 0; i < length; i++) {