Merge pull request #29974 from asmorkalov:as/win_warning_fix

Warnings fix on Windows.
This commit is contained in:
Alexander Smorkalov
2026-09-17 19:46:09 +03:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1132,7 +1132,7 @@ TEST(Core_Mat, issue4457_pass_null_ptr)
TEST(Core_Mat, reshape_1942)
{
cv::Mat A = cv::Mat_<float>({2, 3}, {3.4884074, 1.4159607, 0.78737736, 2.3456569, -0.88010466, 0.3009364});
cv::Mat A = cv::Mat_<float>({2, 3}, {3.4884074f, 1.4159607f, 0.78737736f, 2.3456569f, -0.88010466f, 0.3009364f});
int cn = 0;
ASSERT_NO_THROW(
cv::Mat_<float> M = A.reshape(3);
+1 -1
View File
@@ -2322,7 +2322,7 @@ INSTANTIATE_TYPED_TEST_CASE_P(Negative_Test, Core_CheckRange, mat_data_types);
TEST(Core_Invert, small)
{
cv::Mat a = cv::Mat_<float>({3, 3}, {2.42104644730331, 1.81444796521479, -3.98072565304758, 0, 7.08389214348967e-3, 5.55326770986007e-3, 0,0, 7.44556154284261e-3});
cv::Mat a = cv::Mat_<float>({3, 3}, {2.42104644730331f, 1.81444796521479f, -3.98072565304758f, 0.0f, 7.08389214348967e-3f, 5.55326770986007e-3f, 0.0f, 0.0f, 7.44556154284261e-3f});
//cv::randu(a, -1, 1);
cv::Mat b = a.t()*a;