some more compile warnings fixed

pull/3987/head
Vadim Pisarevsky 10 years ago
parent 931a519969
commit 73f760fdf0
  1. 1
      modules/core/src/mathfuncs.cpp
  2. 5
      modules/core/test/test_math.cpp

@ -43,6 +43,7 @@
#include "precomp.hpp"
#include "opencl_kernels_core.hpp"
#include <limits>
namespace cv
{

@ -2857,14 +2857,15 @@ TEST(Core_Pow, special)
r0 = std::pow(val, power);
if( cvIsInf(r0) )
{
ASSERT_TRUE(cvIsInf(r));
ASSERT_TRUE(cvIsInf(r) != 0);
}
else if( cvIsNaN(r0) )
{
ASSERT_TRUE(cvIsNaN(r));
ASSERT_TRUE(cvIsNaN(r) != 0);
}
else
{
ASSERT_TRUE(cvIsInf(r) == 0 && cvIsNaN(r) == 0);
ASSERT_LT(fabs(r - r0), eps);
}
}

Loading…
Cancel
Save