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
Merge pull request #1 from antirez/master

latest from Salvatore