mirror of
https://github.com/opencv/opencv.git
synced 2025-07-25 06:38:42 +08:00
Merge pull request #21421 from vrabaud:3.4size_t
This commit is contained in:
commit
c25fd3349b
@ -269,7 +269,7 @@ void setSize( Mat& m, int _dims, const int* _sz, const size_t* _steps, bool auto
|
||||
else if( autoSteps )
|
||||
{
|
||||
m.step.p[i] = total;
|
||||
int64 total1 = (int64)total*s;
|
||||
uint64 total1 = (uint64)total*s;
|
||||
if( (uint64)total1 != (size_t)total1 )
|
||||
CV_Error( CV_StsOutOfRange, "The total matrix size does not fit to \"size_t\" type" );
|
||||
total = (size_t)total1;
|
||||
|
Loading…
Reference in New Issue
Block a user