Fix comparison of different signs
Fix implicit float/double conversion