added workaround for a weird Mingw 4.5.1 bug

pull/13383/head
Vadim Pisarevsky 15 years ago
parent 018aba7507
commit d2516c4512
  1. 7
      tests/cv/src/aimgwarp.cpp

@ -192,7 +192,7 @@ int CV_ImgWarpBaseTestImpl::prepare_test_case( int test_case_idx )
assert(0); assert(0);
} }
switch( depth ) /*switch( depth )
{ {
case CV_8U: case CV_8U:
for( j = 0; j < cols*cn; j++ ) for( j = 0; j < cols*cn; j++ )
@ -208,7 +208,10 @@ int CV_ImgWarpBaseTestImpl::prepare_test_case( int test_case_idx )
break; break;
default: default:
assert(0); 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 ); cvFree( &buffer );

Loading…
Cancel
Save