fix warning on msvc
Merge pull request #4 from zhaozg/master

fix warning on msvc