fix incorrect type caused issue on 64bit powerpc

Signed-off-by: Insop Song <insop.song@gainspeed.com>
Merge pull request #53 from insop/master

fix incorrect type caused issue on 64bit powerpc