Fix annoying compile warning due to missing cast
Merge pull request #21 from torstehu/fix-warning

Fix annoying compile warning due to missing cast