changed reinterpret_cast to static_cast

This issue seem to be lingering around for quite some time
https://github.com/Itseez/opencv/pull/639
http://code.opencv.org/issues/2819
parent e143706e
...@@ -686,7 +686,7 @@ template<typename _Tp> static inline ...@@ -686,7 +686,7 @@ template<typename _Tp> static inline
Scalar operator * (const Matx<_Tp, 4, 4>& a, const Scalar& b) Scalar operator * (const Matx<_Tp, 4, 4>& a, const Scalar& b)
{ {
Matx<double, 4, 1> c(Matx<double, 4, 4>(a), b, Matx_MatMulOp()); Matx<double, 4, 1> c(Matx<double, 4, 4>(a), b, Matx_MatMulOp());
return reinterpret_cast<const Scalar&>(c); return static_cast<const Scalar&>(c);
} }
...@@ -694,7 +694,7 @@ static inline ...@@ -694,7 +694,7 @@ static inline
Scalar operator * (const Matx<double, 4, 4>& a, const Scalar& b) Scalar operator * (const Matx<double, 4, 4>& a, const Scalar& b)
{ {
Matx<double, 4, 1> c(a, b, Matx_MatMulOp()); Matx<double, 4, 1> c(a, b, Matx_MatMulOp());
return reinterpret_cast<const Scalar&>(c); return static_cast<const Scalar&>(c);
} }
......
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