build: fix "ambiguous call" (MSVS2010)

pull/8876/head
Alexander Alekhin 8 years ago
parent 515e01e649
commit 781515c514
  1. 3
      modules/core/test/test_countnonzero.cpp

@ -267,7 +267,8 @@ TEST_P (CountNonZeroND, ndim)
data = 0;
EXPECT_EQ(0, cv::countNonZero(data));
data = Scalar::all(1);
EXPECT_EQ(pow(ONE_SIZE, dims), cv::countNonZero(data));
int expected = static_cast<int>(pow(static_cast<float>(ONE_SIZE), dims));
EXPECT_EQ(expected, cv::countNonZero(data));
}
INSTANTIATE_TEST_CASE_P(Core, CountNonZeroND,

Loading…
Cancel
Save