mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 09:25:45 +08:00
Remove a couple of useless casts in core headers
This helps users who compile their code with -Wuseless-cast.
This commit is contained in:
parent
1138fbb940
commit
ebb0255e19
@ -1107,7 +1107,7 @@ CV_INLINE CvSetElem* cvSetNew( CvSet* set_header )
|
||||
set_header->active_count++;
|
||||
}
|
||||
else
|
||||
cvSetAdd( set_header, NULL, (CvSetElem**)&elem );
|
||||
cvSetAdd( set_header, NULL, &elem );
|
||||
return elem;
|
||||
}
|
||||
|
||||
|
@ -790,7 +790,7 @@ CV_INLINE void cvmSet( CvMat* mat, int row, int col, double value )
|
||||
else
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user