diff options
Diffstat (limited to 'cxcore/src')
-rw-r--r-- | cxcore/src/cxdrawing.cpp | 4 | ||||
-rw-r--r-- | cxcore/src/cxpersistence.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
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 )); |