fix #2318, float-int comparisons with floats outside the int range