Commit 13b0fd99 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #8206 from paroj:cast

parents 1304ad1e df86f075
...@@ -82,7 +82,7 @@ template<typename _Tp> struct Matx_FastInvOp<_Tp, 2> ...@@ -82,7 +82,7 @@ template<typename _Tp> struct Matx_FastInvOp<_Tp, 2>
{ {
bool operator()(const Matx<_Tp, 2, 2>& a, Matx<_Tp, 2, 2>& b, int) const bool operator()(const Matx<_Tp, 2, 2>& a, Matx<_Tp, 2, 2>& b, int) const
{ {
_Tp d = determinant(a); _Tp d = (_Tp)determinant(a);
if( d == 0 ) if( d == 0 )
return false; return false;
d = 1/d; d = 1/d;
...@@ -137,7 +137,7 @@ template<typename _Tp> struct Matx_FastSolveOp<_Tp, 2, 1> ...@@ -137,7 +137,7 @@ template<typename _Tp> struct Matx_FastSolveOp<_Tp, 2, 1>
bool operator()(const Matx<_Tp, 2, 2>& a, const Matx<_Tp, 2, 1>& b, bool operator()(const Matx<_Tp, 2, 2>& a, const Matx<_Tp, 2, 1>& b,
Matx<_Tp, 2, 1>& x, int) const Matx<_Tp, 2, 1>& x, int) const
{ {
_Tp d = determinant(a); _Tp d = (_Tp)determinant(a);
if( d == 0 ) if( d == 0 )
return false; return false;
d = 1/d; d = 1/d;
......
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