diff --git a/modules/core/include/opencv2/core/operations.hpp b/modules/core/include/opencv2/core/operations.hpp index 1170fc4074..9d8696a05d 100644 --- a/modules/core/include/opencv2/core/operations.hpp +++ b/modules/core/include/opencv2/core/operations.hpp @@ -686,7 +686,7 @@ template static inline Scalar operator * (const Matx<_Tp, 4, 4>& a, const Scalar& b) { Matx c(Matx(a), b, Matx_MatMulOp()); - return reinterpret_cast(c); + return static_cast(c); } @@ -694,7 +694,7 @@ static inline Scalar operator * (const Matx& a, const Scalar& b) { Matx c(a, b, Matx_MatMulOp()); - return reinterpret_cast(c); + return static_cast(c); }