Fix 64-bit compilation

This commit is contained in:
Thomas Goyne 2012-12-28 09:19:43 -08:00
parent c6cd86f2da
commit b0cbc049ec

View file

@ -75,7 +75,7 @@ void RAMAudioProvider::FillCache(AudioProvider *source, agi::ProgressSink *ps) {
int64_t readsize = CacheBlockSize / source->GetBytesPerSample(); int64_t readsize = CacheBlockSize / source->GetBytesPerSample();
for (size_t i = 0; i < blockcache.size(); i++) { for (size_t i = 0; i < blockcache.size(); i++) {
source->GetAudio(&blockcache[i][0], i * readsize, std::min(readsize, num_samples - i * readsize)); source->GetAudio(&blockcache[i][0], i * readsize, std::min<int64_t>(readsize, num_samples - i * readsize));
ps->SetProgress(i, blockcache.size() - 1); ps->SetProgress(i, blockcache.size() - 1);
if (ps->IsCancelled()) { if (ps->IsCancelled()) {