fix a few implicit conversion warnings
Merge pull request #50 from albertz/master

fix a few implicit conversion warnings