fix an explicit conversion error when building with -Werror
Merge pull request #250 from Madefire/master

fix an explicit conversion error when building with -Werror