fix some more type conversion warnings w/MSVC
API & memory related warnings will be dealt with separately Change-Id: I8a7893baa4d5035c963fb3c16e0bb4eee742e968
This commit is contained in:
parent
223d8c60aa
commit
b1662b0530
@ -98,8 +98,8 @@ static int AppendToMemBuffer(WebPIDecoder* const idec,
|
||||
if (mem->end_ + data_size > mem->buf_size_) { // Need some free memory
|
||||
int p;
|
||||
uint8_t* new_buf = NULL;
|
||||
const int num_chunks = (MemDataSize(mem) + data_size + CHUNK_SIZE - 1)
|
||||
/ CHUNK_SIZE;
|
||||
const size_t num_chunks =
|
||||
(MemDataSize(mem) + data_size + CHUNK_SIZE - 1) / CHUNK_SIZE;
|
||||
const size_t new_size = num_chunks * CHUNK_SIZE;
|
||||
const uint8_t* const base = mem->buf_ + mem->start_;
|
||||
|
||||
|
@ -116,7 +116,7 @@ static int EncodeZlibTCoder(const uint8_t* data, int width, int height,
|
||||
best.literal = data[n];
|
||||
best.len = 1;
|
||||
for (dist = 1; dist <= MAX_DIST && dist <= n; ++dist) {
|
||||
const int pos = n - dist;
|
||||
const size_t pos = n - dist;
|
||||
const size_t min_len = best.len - 1;
|
||||
size_t len;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user