minor syntax
[platform/upstream/flac.git] / src / share / grabbag / cuesheet.c
index 7b96ca6..3c8bd9a 100644 (file)
@@ -540,7 +540,7 @@ void grabbag__cuesheet_emit(FILE *file, const FLAC__StreamMetadata *cuesheet, co
 
                        fprintf(file, "    INDEX %02u ", (unsigned)index->number);
                        if(cs->is_cd) {
-                               const unsigned logical_frame = (track->offset + index->offset) / (44100 / 75);
+                               const unsigned logical_frame = (unsigned)((track->offset + index->offset) / (44100 / 75));
                                unsigned m, s, f;
                                grabbag__cuesheet_frame_to_msf(logical_frame, &m, &s, &f);
                                fprintf(file, "%02u:%02u:%02u\n", m, s, f);