silence some type size related warnings

size_t/ptrdiff_t -> uint32_t

Change-Id: Ic4d889b9239752311b9ed906c83076829d850874
This commit is contained in:
James Zern
2012-02-08 12:30:30 -08:00
parent 85b6ff6897
commit 1601a39b09
3 changed files with 8 additions and 4 deletions

View File

@ -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;