diff --git a/src/scan-flac.c b/src/scan-flac.c index 8268eb3d..38263638 100644 --- a/src/scan-flac.c +++ b/src/scan-flac.c @@ -124,7 +124,7 @@ int scan_get_flacinfo(char *filename, MP3FILE *pmp3) { } if (block->type == FLAC__METADATA_TYPE_VORBIS_COMMENT) { - for (i = 0; i < block->data.vorbis_comment.num_comments; i++) { + for (i = 0; i < (int)block->data.vorbis_comment.num_comments; i++) { if ((val = GET_VORBIS_COMMENT(block->data.vorbis_comment.comments[i], "ARTIST", &len))) { if ((pmp3->artist = calloc(len + 1, 1)) != NULL) diff --git a/src/scan-ogg.c b/src/scan-ogg.c index c81a2c75..e621be00 100644 --- a/src/scan-ogg.c +++ b/src/scan-ogg.c @@ -66,7 +66,7 @@ int scan_get_ogginfo(char *filename, MP3FILE *pmp3) { pmp3->samplerate=vi->rate; } - pmp3->song_length=ov_time_total(&vf,-1) * 1000; + pmp3->song_length=(int)ov_time_total(&vf,-1) * 1000; comment = ov_comment(&vf, -1); if (comment != NULL) {