Commit ac9f8c1f authored by gapry's avatar gapry

Fixed Compilation warnings | Issue #16336

parent 86e5e8d7
...@@ -1192,7 +1192,7 @@ _Tp Point_<_Tp>::dot(const Point_& pt) const ...@@ -1192,7 +1192,7 @@ _Tp Point_<_Tp>::dot(const Point_& pt) const
template<typename _Tp> inline template<typename _Tp> inline
double Point_<_Tp>::ddot(const Point_& pt) const double Point_<_Tp>::ddot(const Point_& pt) const
{ {
return (double)x*pt.x + (double)y*pt.y; return (double)x*(double)(pt.x) + (double)y*(double)(pt.y);
} }
template<typename _Tp> inline template<typename _Tp> inline
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment