Pārlūkot izejas kodu

fixed ambiguous template call by double cast

Johannes R 12 gadi atpakaļ
vecāks
revīzija
5d0ff1729f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      core/vector/ippwrapper.tcc

+ 1 - 1
core/vector/ippwrapper.tcc

@@ -1653,7 +1653,7 @@ template<class P>
 inline IppStatus ippsNorm_L2(const P* pSrc, int len, P* pNorm) {
  if(len==0)
      return ippStsSizeErr;
- *pNorm = static_cast<P>(::sqrt(std::inner_product(pSrc, pSrc + len, pSrc, static_cast<P>(0))));
+ *pNorm = static_cast<P>(::sqrt((double)std::inner_product(pSrc, pSrc + len, pSrc, static_cast<P>(0))));
  return ippStsNoErr;
 }
 template<class P1, class P2>