mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-18 14:59:48 +02:00
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:
@ -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_;
|
||||
|
||||
|
Reference in New Issue
Block a user