Mercurial > hg > Game > Cerium
diff example/word_count/spe/Exec.cc @ 626:0e91ddaad798 draft
64bit mode compatibility on Cell
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 16 Nov 2009 11:37:26 +0900 |
parents | 839e34d0cc3c |
children | 470db907a460 |
line wrap: on
line diff
--- a/example/word_count/spe/Exec.cc Mon Nov 16 10:59:55 2009 +0900 +++ b/example/word_count/spe/Exec.cc Mon Nov 16 11:37:26 2009 +0900 @@ -11,8 +11,8 @@ { char *i_data = (char*)s->get_input(rbuf, 0); unsigned long long *o_data = (unsigned long long*)s->get_output(wbuf, 0); - int length = s->get_param(0); - int word_flag = s->get_param(1); + int length = (long)s->get_param(0); + int word_flag = (long)s->get_param(1); int word_num = 0; int line_num = 0; int i;