Mercurial > hg > Game > Cerium
diff example/Prime/ppe/Prime.cc @ 1189:898fdcf53c31 draft
add SemMailManager
author | Daichi TOMA |
---|---|
date | Fri, 08 Jul 2011 18:34:18 +0900 |
parents | d910c8377a09 |
children | 2dfac651288e |
line wrap: on
line diff
--- a/example/Prime/ppe/Prime.cc Thu Jul 07 13:50:56 2011 +0900 +++ b/example/Prime/ppe/Prime.cc Fri Jul 08 18:34:18 2011 +0900 @@ -9,8 +9,8 @@ static int prime(SchedTask *smanager, void *rbuf, void *wbuf) { - int start = (int)smanager->get_param(0); /* 素数判定の開始地点 */ - int end = (int)smanager->get_param(1); /* 素数判定の終了地点 */ + int start = (long)smanager->get_param(0); /* 素数判定の開始地点 */ + int end = (long)smanager->get_param(1); /* 素数判定の終了地点 */ int range = end - start; /* 判定する範囲 */ /* 判定結果を収める配列を受け取る */