Added some casts to keep the compiler from complaining.
Merge pull request #4 from ccgus/master

同步原作者更新