mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 06:24:27 +02:00
Merge "silence some type size related warnings"
This commit is contained in:
@ -13,6 +13,7 @@
|
||||
|
||||
#include "./vp8i.h"
|
||||
#include "./webpi.h"
|
||||
#include "../mux/muxi.h" // For MAX_CHUNK_PAYLOAD.
|
||||
#include "../webp/mux.h" // For 'ALPHA_FLAG'.
|
||||
|
||||
#if defined(__cplusplus) || defined(c_plusplus)
|
||||
@ -257,7 +258,8 @@ VP8StatusCode WebPParseHeaders(const uint8_t** data, uint32_t* data_size,
|
||||
*vp8_size = vp8_size_tmp;
|
||||
}
|
||||
|
||||
*bytes_skipped = buf - *data;
|
||||
*bytes_skipped = (uint32_t)(buf - *data);
|
||||
assert(buf - *data < MAX_CHUNK_PAYLOAD);
|
||||
assert(*bytes_skipped == *data_size - buf_size);
|
||||
*data = buf;
|
||||
*data_size = buf_size;
|
||||
|
Reference in New Issue
Block a user