Fix iOS warnings about implicit conversion precision by changing double literals to float ones

This commit is contained in:
Thomas Gabrowski
2015-02-13 00:51:03 +00:00
parent 9a62173a5b
commit ff4c42d182
3 changed files with 7 additions and 7 deletions

View File

@@ -243,7 +243,7 @@ void cv::Affine3<T>::rotation(const Vec3& _rvec)
double c = std::cos(theta);
double s = std::sin(theta);
double c1 = 1. - c;
double itheta = theta ? 1./theta : 0.;
double itheta = (theta != 0) ? 1./theta : 0.;
rx *= itheta; ry *= itheta; rz *= itheta;