Skip to content

Commit

Permalink
Fix some compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmf01 committed Feb 7, 2025
1 parent 6974998 commit b323869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libFLAC/ogg_decoder_aspect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/test_seeking/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b323869

Please sign in to comment.