Skip to content
Snippets Groups Projects
Unverified Commit 00ae9c68 authored by Martijn van Beurden's avatar Martijn van Beurden Committed by GitHub
Browse files

Fix some compiler warnings (#796)

parent 6974998f
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ static FLAC__OggDecoderAspectReadStatus process_page_(FLAC__OggDecoderAspect *as
/* Check whether not FLAC. The next if is somewhat confusing: check
* whether the length of the next page body agrees with the length
* of a FLAC 'header' possibly contained in that page */
if(aspect->working_page.body_len > 1 + FLAC__OGG_MAPPING_MAGIC_LENGTH &&
if(aspect->working_page.body_len > (long)(1 + FLAC__OGG_MAPPING_MAGIC_LENGTH) &&
aspect->working_page.body[0] == FLAC__OGG_MAPPING_FIRST_HEADER_PACKET_TYPE &&
memcmp((&aspect->working_page.body) + 1, FLAC__OGG_MAPPING_MAGIC, FLAC__OGG_MAPPING_MAGIC_LENGTH)) {
aspect->bos_flag_seen = true;
......
......@@ -322,7 +322,7 @@ static FLAC__bool seek_barrage(FLAC__bool is_ogg, const char *filename, FLAC__of
if(total_samples > n)
n = (long int)total_samples;
printf("file's total_samples is %" PRIu64 "\n", n);
printf("file's total_samples is %ld\n", n);
/* if we don't have a total samples count, just guess based on the file size */
/* @@@ for is_ogg we should get it from last page's granulepos */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment