mux: add some missing casts

+ fix a return value
+ fix a param type

Change-Id: I8bb7a4dc4c76b11140f8693c909aeb10f660e6e5
This commit is contained in:
James Zern
2013-11-25 20:53:15 -08:00
parent 617d93480e
commit 05aacf77c2
3 changed files with 4 additions and 4 deletions

View File

@ -505,7 +505,7 @@ WebPMuxError WebPMuxGetAnimationParams(const WebPMux* mux,
static CHUNK_INDEX ChunkGetIndexFromId(WebPChunkId id) {
int i;
for (i = 0; kChunks[i].id != WEBP_CHUNK_NIL; ++i) {
if (id == kChunks[i].id) return i;
if (id == kChunks[i].id) return (CHUNK_INDEX)i;
}
return IDX_NIL;
}