Mercurial > hg > Members > kono > Cerium
diff Renderer/Engine/spe/ChainInit.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 | 735f76483bb2 |
children | 716d8bd95503 |
line wrap: on
line diff
--- a/Renderer/Engine/spe/ChainInit.cc Mon Nov 16 10:59:55 2009 +0900 +++ b/Renderer/Engine/spe/ChainInit.cc Mon Nov 16 11:37:26 2009 +0900 @@ -22,7 +22,7 @@ run(SchedTask *s,void *rbuf, void *wbuf) { CHAIN_VARS* idata = (CHAIN_VARS*)s->get_input(rbuf, 0); - uint32 chain_len = s->get_param(0); + uint32 chain_len = (unsigned long)s->get_param(0); // property は spe 上で allocate している(global) CHAIN_VARS *property = (CHAIN_VARS*)s->global_alloc(DATA_ID, sizeof(CHAIN_VARS)*chain_len);