Fix 64-bit compilation

This commit is contained in:
Thomas Goyne 2012-12-28 09:19:43 -08:00
parent c6cd86f2da
commit b0cbc049ec
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ void RAMAudioProvider::FillCache(AudioProvider *source, agi::ProgressSink *ps) {
int64_t readsize = CacheBlockSize / source->GetBytesPerSample();
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);
if (ps->IsCancelled()) {