nestegg: ne_parse: normalize size_t usage

in calls to ne_read_simple / ne_io_read_skip

Change-Id: I5c4fc3bb41832973830ad54248839d6a4944aae6
This commit is contained in:
James Zern 2014-03-03 18:40:00 -08:00
parent 483ebc30bc
commit 9251ff3ad7
2 changed files with 3 additions and 2 deletions

View File

@ -19,3 +19,4 @@ nestegg.c|975 col 6| warning: r may be used uninitialized in this function
- fix track_scale double->uint64 warning
- nestegg_packet_track: fix uint64->uint32 warning
- ne_read_(string|binary|block): normalize size_t usage
- ne_parse: normalize size_t usage

View File

@ -1044,7 +1044,7 @@ ne_parse(nestegg * ctx, struct ebml_element_desc * top_level, int64_t max_offset
ne_read_single_master(ctx, element);
continue;
} else {
r = ne_read_simple(ctx, element, size);
r = ne_read_simple(ctx, element, (size_t)size);
if (r < 0)
break;
}
@ -1063,7 +1063,7 @@ ne_parse(nestegg * ctx, struct ebml_element_desc * top_level, int64_t max_offset
if (id != ID_VOID && id != ID_CRC32)
ctx->log(ctx, NESTEGG_LOG_DEBUG, "unknown element %llx", id);
r = ne_io_read_skip(ctx->io, size);
r = ne_io_read_skip(ctx->io, (size_t)size);
if (r != 1)
break;
}