Skip to content

Commit 00ae9c6

Browse files
authored
Fix some compiler warnings (#796)
1 parent 6974998 commit 00ae9c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libFLAC/ogg_decoder_aspect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static FLAC__OggDecoderAspectReadStatus process_page_(FLAC__OggDecoderAspect *as
8989
/* Check whether not FLAC. The next if is somewhat confusing: check
9090
* whether the length of the next page body agrees with the length
9191
* of a FLAC 'header' possibly contained in that page */
92-
if(aspect->working_page.body_len > 1 + FLAC__OGG_MAPPING_MAGIC_LENGTH &&
92+
if(aspect->working_page.body_len > (long)(1 + FLAC__OGG_MAPPING_MAGIC_LENGTH) &&
9393
aspect->working_page.body[0] == FLAC__OGG_MAPPING_FIRST_HEADER_PACKET_TYPE &&
9494
memcmp((&aspect->working_page.body) + 1, FLAC__OGG_MAPPING_MAGIC, FLAC__OGG_MAPPING_MAGIC_LENGTH)) {
9595
aspect->bos_flag_seen = true;

src/test_seeking/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ static FLAC__bool seek_barrage(FLAC__bool is_ogg, const char *filename, FLAC__of
322322
if(total_samples > n)
323323
n = (long int)total_samples;
324324

325-
printf("file's total_samples is %" PRIu64 "\n", n);
325+
printf("file's total_samples is %ld\n", n);
326326

327327
/* if we don't have a total samples count, just guess based on the file size */
328328
/* @@@ for is_ogg we should get it from last page's granulepos */

0 commit comments

Comments
 (0)