Commit d2516c45 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

added workaround for a weird Mingw 4.5.1 bug

parent 018aba75
......@@ -192,7 +192,7 @@ int CV_ImgWarpBaseTestImpl::prepare_test_case( int test_case_idx )
assert(0);
}
switch( depth )
/*switch( depth )
{
case CV_8U:
for( j = 0; j < cols*cn; j++ )
......@@ -208,7 +208,10 @@ int CV_ImgWarpBaseTestImpl::prepare_test_case( int test_case_idx )
break;
default:
assert(0);
}
}*/
cv::Mat src(1, cols*cn, CV_32F, buffer);
cv::Mat dst(1, cols*cn, depth, ptr);
src.convertTo(dst, dst.type());
}
cvFree( &buffer );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment