Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions 3rdParty/opencv2/core/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1851,8 +1851,10 @@ template<typename _Tp> inline
_Tp Rect_<_Tp>::area() const
{
const _Tp result = width * height;
CV_DbgAssert(!std::numeric_limits<_Tp>::is_integer
|| width == 0 || result / width == height); // make sure the result fits in the return value
if constexpr (std::numeric_limits<_Tp>::is_integer)
{
CV_DbgAssert(width == 0 || result / width == height); // make sure the result fits in the return value
}
return result;
}

Expand Down
Loading