Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
48f7cbec
Commit
48f7cbec
authored
Feb 06, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8107 from reunanen:fix8093
parents
a2fed4c7
f3cb5084
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
types.hpp
modules/core/include/opencv2/core/types.hpp
+8
-2
No files found.
modules/core/include/opencv2/core/types.hpp
View file @
48f7cbec
...
@@ -1592,7 +1592,10 @@ Size_<_Tp>& Size_<_Tp>::operator = (const Size_<_Tp>& sz)
...
@@ -1592,7 +1592,10 @@ Size_<_Tp>& Size_<_Tp>::operator = (const Size_<_Tp>& sz)
template
<
typename
_Tp
>
inline
template
<
typename
_Tp
>
inline
_Tp
Size_
<
_Tp
>::
area
()
const
_Tp
Size_
<
_Tp
>::
area
()
const
{
{
return
width
*
height
;
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
return
result
;
}
}
template
<
typename
_Tp
>
static
inline
template
<
typename
_Tp
>
static
inline
...
@@ -1731,7 +1734,10 @@ Size_<_Tp> Rect_<_Tp>::size() const
...
@@ -1731,7 +1734,10 @@ Size_<_Tp> Rect_<_Tp>::size() const
template
<
typename
_Tp
>
inline
template
<
typename
_Tp
>
inline
_Tp
Rect_
<
_Tp
>::
area
()
const
_Tp
Rect_
<
_Tp
>::
area
()
const
{
{
return
width
*
height
;
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
return
result
;
}
}
template
<
typename
_Tp
>
template
<
typename
_Tp2
>
inline
template
<
typename
_Tp
>
template
<
typename
_Tp2
>
inline
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment