const FLAC__uint64 input_samples_passed = skip + decoder_session->samples_processed;
FLAC__ASSERT(until >= input_samples_passed);
if(input_samples_passed + wide_samples > until)
- wide_samples = until - input_samples_passed;
+ wide_samples = (unsigned)(until - input_samples_passed);
}
if(wide_samples > 0) {
decoder_session->abort_flag = true;
}
else {
- const FLAC__uint32 aligned_data_size = (data_size+1) & (~1U);
+ const FLAC__uint32 aligned_data_size = (FLAC__uint32)((data_size+1) & (~1U));
if(flac__utils_fwrite("FORM", 1, 4, decoder_session->fout) != 4)
decoder_session->abort_flag = true;
if(decoder_session->wave_chunk_size_fixup.needs_fixup)
decoder_session->wave_chunk_size_fixup.frames_offset = ftell(decoder_session->fout);
- if(!write_big_endian_uint32(decoder_session->fout, decoder_session->total_samples))
+ if(!write_big_endian_uint32(decoder_session->fout, (FLAC__uint32)decoder_session->total_samples))
decoder_session->abort_flag = true;
if(!write_big_endian_uint16(decoder_session->fout, (FLAC__uint16)(decoder_session->bps)))
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);
goto foo;
if(fwrite("AIFFCOMM\000\000\000\022", 1, 12, f) < 12)
goto foo;
- if(!write_big_endian_uint16(f, channels))
+ if(!write_big_endian_uint16(f, (FLAC__uint16)channels))
goto foo;
if(!write_big_endian_uint32(f, samples))
goto foo;
goto foo;
if(fwrite("WAVEfmt \020\000\000\000\001\000", 1, 14, f) < 14)
goto foo;
- if(!write_little_endian_uint16(f, channels))
+ if(!write_little_endian_uint16(f, (FLAC__uint16)channels))
goto foo;
if(!write_little_endian_uint32(f, sample_rate))
goto foo;