Skip to content

Commit 0810cfb

Browse files
authored
Merge pull request #3705 from vrabaud:cpp
Use proper C++ types again.
2 parents c8c750a + 9edb0ce commit 0810cfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/xphoto/src/norm2.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ template <class T> struct same_as<T, T> : ttype {}; // is_same
5959

6060

6161
template <typename _Tp> struct is_norm2_type :
62-
int_const<bool, !same_as<_Tp, char>::value
62+
int_const<bool, !same_as<_Tp, int8_t>::value
6363
&& !same_as<_Tp, uint8_t>::value
64-
&& !same_as<_Tp, ushort>::value
65-
&& !same_as<_Tp, uint>::value>{};
64+
&& !same_as<_Tp, uint16_t>::value
65+
&& !same_as<_Tp, uint32_t>::value>{};
6666

6767
template <typename _Tp, int cn> static inline typename iftype< is_norm2_type<_Tp>::value, _Tp >::
6868
type norm2(cv::Vec<_Tp, cn> a, cv::Vec<_Tp, cn> b) { return (a - b).dot(a - b); }

0 commit comments

Comments
 (0)