Commit ebb0255e authored by Roman Donchenko's avatar Roman Donchenko

Remove a couple of useless casts in core headers

This helps users who compile their code with -Wuseless-cast.
parent 1138fbb9
...@@ -1107,7 +1107,7 @@ CV_INLINE CvSetElem* cvSetNew( CvSet* set_header ) ...@@ -1107,7 +1107,7 @@ CV_INLINE CvSetElem* cvSetNew( CvSet* set_header )
set_header->active_count++; set_header->active_count++;
} }
else else
cvSetAdd( set_header, NULL, (CvSetElem**)&elem ); cvSetAdd( set_header, NULL, &elem );
return elem; return elem;
} }
......
...@@ -790,7 +790,7 @@ CV_INLINE void cvmSet( CvMat* mat, int row, int col, double value ) ...@@ -790,7 +790,7 @@ CV_INLINE void cvmSet( CvMat* mat, int row, int col, double value )
else else
{ {
assert( type == CV_64FC1 ); assert( type == CV_64FC1 );
((double*)(void*)(mat->data.ptr + (size_t)mat->step*row))[col] = (double)value; ((double*)(void*)(mat->data.ptr + (size_t)mat->step*row))[col] = value;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment