Fix signed/unsigned comparison warning on x64

Originally committed to SVN as r6204.
This commit is contained in:
Thomas Goyne 2012-01-08 01:04:29 +00:00
parent 71968aa4f3
commit 6b85782dc5
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ void OpenALPlayer::Notify()
LOG_D("player/audio/openal") << "frames played=" << (buffers_played - num_buffers) * decode_buffer.size() / bpf << " num frames=" << end_frame - start_frame;
// Check that all of the selected audio plus one full set of buffers has been queued
if ((int64_t)(buffers_played - num_buffers) * decode_buffer.size() > (end_frame - start_frame) * bpf) {
if ((buffers_played - num_buffers) * (int64_t)decode_buffer.size() > (end_frame - start_frame) * bpf) {
Stop(true);
}
}