Fix comparison of different signs
Fix implicit float/double conversion
Merge pull request #313 from JensDee/features/fixWarnings

fix warnings