diff --git a/modules/img/base/src/point.hh b/modules/img/base/src/point.hh index 443c1b644a4b9342062811ac111f938a5d7b10dc..0d9f307e7c5f48d7170ebdece6e07e17f38cc868 100644 --- a/modules/img/base/src/point.hh +++ b/modules/img/base/src/point.hh @@ -113,9 +113,9 @@ public: throw geom::OutOfRangeException("4th element of Vec4 is too close to zero for normalization"); } else { Real sf = 1.0/v[3]; - x*=sf; - y*=sf; - z*=sf; + x = static_cast<int>(x*sf); + y = static_cast<int>(y*sf); + z = static_cast<int>(z*sf); } }