Mercurial > hg > Members > kono > Cerium
diff example/word_count/spe/Print.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 | a8b6ee80c108 |
line wrap: on
line diff
--- a/example/word_count/spe/Print.cc Mon Nov 16 10:59:55 2009 +0900 +++ b/example/word_count/spe/Print.cc Mon Nov 16 11:37:26 2009 +0900 @@ -10,8 +10,8 @@ run(SchedTask *s, void *rbuf, void *wbuf) { unsigned long long *idata = (unsigned long long*)s->get_input(rbuf, 0); - int task_num = s->get_param(0); - int status_num = s->get_param(1); + int task_num = (long)s->get_param(0); + int status_num = (long)s->get_param(1); unsigned long long word_data[task_num]; for (int i = 0; i < status_num; i++) {