fix comparison of float and integer
release
improve code change according to review)
Merge pull request #118 from yast/fix_compare

Fix compare