diff options
author | Max Horn | 2007-03-10 22:49:19 +0000 |
---|---|---|
committer | Max Horn | 2007-03-10 22:49:19 +0000 |
commit | 4e5aa19f7479d6268a3a961e1d13d96a9aa155ff (patch) | |
tree | 8200e69d172e87d4610004a609f57e16011890d4 /engines/sky/music/adlibmusic.cpp | |
parent | 72ef7093fa98618f54d5a1961f5f313d6a23e5d0 (diff) | |
download | scummvm-rg350-4e5aa19f7479d6268a3a961e1d13d96a9aa155ff.tar.gz scummvm-rg350-4e5aa19f7479d6268a3a961e1d13d96a9aa155ff.tar.bz2 scummvm-rg350-4e5aa19f7479d6268a3a961e1d13d96a9aa155ff.zip |
fix warning
svn-id: r26073
Diffstat (limited to 'engines/sky/music/adlibmusic.cpp')
-rw-r--r-- | engines/sky/music/adlibmusic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sky/music/adlibmusic.cpp b/engines/sky/music/adlibmusic.cpp index aa5d9ee51f..1ebd6fa15d 100644 --- a/engines/sky/music/adlibmusic.cpp +++ b/engines/sky/music/adlibmusic.cpp @@ -60,9 +60,9 @@ int AdlibMusic::readBuffer(int16 *data, const int numSamples) { _nextMusicPoll = _sampleRate / 50; } else { uint32 render; - int remaining = numSamples; + uint remaining = numSamples; while (remaining) { - render = (remaining > _nextMusicPoll) ? (_nextMusicPoll) : (remaining); + render = (remaining > _nextMusicPoll) ? _nextMusicPoll : remaining; remaining -= render; _nextMusicPoll -= render; YM3812UpdateOne(_opl, data, render); |