summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2016-12-01 21:14:55 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-12-01 21:14:55 +0000
commit8514df949232a5a8ba4717c8e838c345f819e587 (patch)
treeab792ddf298f5bd6aacb64980defbedcae376212
parentbf14626be306849488aacc171a8e85a0dead645b (diff)
parent334737fa1aafc0ce239202d8341f99764bcafee8 (diff)
downloadopencv-8514df949232a5a8ba4717c8e838c345f819e587.tar.gz
am: 334737fa1a Change-Id: I689e1fd4d5e8f154638c32eb3b9c2108cf91e7c0
-rw-r--r--cvaux/src/cvtexture.cpp2
-rw-r--r--cxcore/src/cxdrawing.cpp4
-rw-r--r--cxcore/src/cxpersistence.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/cvaux/src/cvtexture.cpp b/cvaux/src/cvtexture.cpp
index 0229161..7ef86e0 100644
--- a/cvaux/src/cvtexture.cpp
+++ b/cvaux/src/cvtexture.cpp
@@ -469,7 +469,7 @@ icvCreateGLCMDescriptors_AllowDoubleNest( CvGLCM* destGLCM, int matrixIndex )
descriptors[ CV_GLCMDESC_ENERGY ] += entryValue*entryValue;
}
- if( marginalProbability>0 )
+ if( marginalProbability )
marginalProbabilityEntropy += marginalProbability[ actualSideLoop1 ]*log(marginalProbability[ actualSideLoop1 ]);
}
diff --git a/cxcore/src/cxdrawing.cpp b/cxcore/src/cxdrawing.cpp
index ecbe22e..41d6625 100644
--- a/cxcore/src/cxdrawing.cpp
+++ b/cxcore/src/cxdrawing.cpp
@@ -1973,7 +1973,7 @@ cvFillPoly( void *img, CvPoint **pts, int *npts, int contours,
if( !pts )
CV_ERROR( CV_StsNullPtr, "" );
- if( npts <= 0 )
+ if( !npts )
CV_ERROR( CV_StsNullPtr, "" );
if( shift < 0 || XY_SHIFT < shift )
@@ -2044,7 +2044,7 @@ cvPolyLine( void *img, CvPoint **pts, int *npts,
if( !pts )
CV_ERROR( CV_StsNullPtr, "" );
- if( npts <= 0 )
+ if( !npts )
CV_ERROR( CV_StsNullPtr, "" );
if( shift < 0 || XY_SHIFT < shift )
diff --git a/cxcore/src/cxpersistence.cpp b/cxcore/src/cxpersistence.cpp
index 75efa94..7e64c3d 100644
--- a/cxcore/src/cxpersistence.cpp
+++ b/cxcore/src/cxpersistence.cpp
@@ -4675,7 +4675,7 @@ icvReadGraph( CvFileStorage* fs, CvFileNode* node )
if( header_dt )
CV_CALL( header_size = icvCalcElemSize( header_dt, header_size ));
- if( vtx_dt > 0 )
+ if( vtx_dt )
{
CV_CALL( src_vtx_size = icvCalcElemSize( vtx_dt, 0 ));
CV_CALL( vtx_size = icvCalcElemSize( vtx_dt, vtx_size ));