diff --git a/modules/calib3d/src/stereobm.cpp b/modules/calib3d/src/stereobm.cpp index 625196ea63..1fa2981493 100644 --- a/modules/calib3d/src/stereobm.cpp +++ b/modules/calib3d/src/stereobm.cpp @@ -211,7 +211,7 @@ static void prefilterXSobel( const Mat& src, Mat& dst, int ftzero ) { int x, y; - const int OFS = 256*4, TABSZ = OFS*2 + 256; + const int OFS = 256*4, TABSZ = OFS*2; uchar tab[TABSZ] = { 0 }; Size size = src.size();