Fix warnings about unsafe equality checks with floats