fix build with GCC 3.3 on Ubuntu 8.04

This commit is contained in:
Vadim Pisarevsky
2010-07-09 09:09:20 +00:00
parent 4187f11610
commit db82906067
5 changed files with 57 additions and 50 deletions

View File

@@ -205,7 +205,7 @@ static void momentsInTile( const cv::Mat& img, double* moments )
for( y = 0; y < size.height; y++ )
{
const T* ptr = img.ptr<T>(y);
const T* ptr = (const T*)(img.data + y*img.step);
WT x0 = 0, x1 = 0, x2 = 0;
MT x3 = 0;