Skip to content

Commit

Permalink
some more compile warnings fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vpisarev committed May 5, 2015
1 parent 931a519 commit 73f760f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/core/src/mathfuncs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

#include "precomp.hpp"
#include "opencl_kernels_core.hpp"
#include <limits>

namespace cv
{
Expand Down
5 changes: 3 additions & 2 deletions modules/core/test/test_math.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 73f760f

Please sign in to comment.