Skip to content

Commit 84c29dc

Browse files
committed
Merge pull request opencv#16474 from gapry:issue_16336
2 parents 126b0d8 + ac9f8c1 commit 84c29dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/include/opencv2/core/types.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ _Tp Point_<_Tp>::dot(const Point_& pt) const
11921192
template<typename _Tp> inline
11931193
double Point_<_Tp>::ddot(const Point_& pt) const
11941194
{
1195-
return (double)x*pt.x + (double)y*pt.y;
1195+
return (double)x*(double)(pt.x) + (double)y*(double)(pt.y);
11961196
}
11971197

11981198
template<typename _Tp> inline

0 commit comments

Comments
 (0)