mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
Fixed warnings produced by x86 builds on Windows.
This commit is contained in:
@@ -51,10 +51,10 @@ int validateToInt(size_t sz)
|
||||
return valueInt;
|
||||
}
|
||||
|
||||
int64_t validateToInt64(size_t sz)
|
||||
int64_t validateToInt64(ptrdiff_t sz)
|
||||
{
|
||||
int64_t valueInt = static_cast<int64_t>(sz);
|
||||
CV_Assert((size_t)valueInt == sz);
|
||||
CV_Assert((ptrdiff_t)valueInt == sz);
|
||||
return valueInt;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user