From: Maksim Shabunin Date: Fri, 6 Mar 2015 13:16:57 +0000 (+0300) Subject: Fixed warnings for iOS X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~2614^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee2d7a1f391dd66a4650131bfe8b9ca50d01499c;p=platform%2Fupstream%2Fopencv.git Fixed warnings for iOS --- diff --git a/modules/video/src/bgfg_KNN.cpp b/modules/video/src/bgfg_KNN.cpp index cddd62c..334810b 100755 --- a/modules/video/src/bgfg_KNN.cpp +++ b/modules/video/src/bgfg_KNN.cpp @@ -512,7 +512,7 @@ CV_INLINE void { for (long x = 0; x < _src.cols; x++) { - const uchar* data = _src.ptr(y, x); + const uchar* data = _src.ptr((int)y, (int)x); //update model+ background subtract uchar include=0; @@ -539,15 +539,15 @@ CV_INLINE void { case 0: //foreground - *_dst.ptr(y, x) = 255; + *_dst.ptr((int)y, (int)x) = 255; break; case 1: //background - *_dst.ptr(y, x) = 0; + *_dst.ptr((int)y, (int)x) = 0; break; case 2: //shadow - *_dst.ptr(y, x) = nShadowDetection; + *_dst.ptr((int)y, (int)x) = nShadowDetection; break; } i++;