mirror of
https://github.com/zebrajr/opencv.git
synced 2025-12-06 12:19:50 +01:00
Fixed warnings produced by x86 builds on Windows.
This commit is contained in:
parent
75598e5377
commit
b5e96d76eb
|
|
@ -764,7 +764,7 @@ bool GifEncoder::lzwEncode() {
|
|||
//initialize
|
||||
int32_t prev = imgCodeStream[0];
|
||||
|
||||
for (int64_t i = 1; i < height * width; i++) {
|
||||
for (size_t i = 1; i < size_t(height * width); i++) {
|
||||
// add the output code to the output buffer
|
||||
while (bitLeft >= 8) {
|
||||
buffer[bufferLen++] = (uchar)output;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
namespace cv {
|
||||
|
||||
int validateToInt(size_t step);
|
||||
int64_t validateToInt64(size_t step);
|
||||
int64_t validateToInt64(ptrdiff_t step);
|
||||
|
||||
template <typename _Tp> static inline
|
||||
size_t safeCastToSizeT(const _Tp v_origin, const char* msg)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user