From f09ae32796cfa49671b82814e525a944f4a05f44 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Wed, 27 Jun 2012 14:19:35 +0000 Subject: [PATCH] Fixed Mat::isContinuous for big matrix (thanks to Boris Mansencal) #2103 --- modules/core/src/matrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/matrix.cpp b/modules/core/src/matrix.cpp index 958871b2d5..df90d6cade 100644 --- a/modules/core/src/matrix.cpp +++ b/modules/core/src/matrix.cpp @@ -151,7 +151,7 @@ static void updateContinuityFlag(Mat& m) } int64 t = (int64)m.step[0]*m.size[0]; - if( j <= i && t == (int)t ) + if( j <= i && t == (size_t)t ) m.flags |= Mat::CONTINUOUS_FLAG; else m.flags &= ~Mat::CONTINUOUS_FLAG;