aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Persson2006-03-13 21:38:20 +0000
committerLars Persson2006-03-13 21:38:20 +0000
commitd66d7ff76bad94a61de85897187c6aff4837e39d (patch)
tree4c2bf50dbba49fbe90c316af3cb1a567880e2c61
parentccd0a09f7a1fa4c0d820244b5f99b1e835b22af8 (diff)
downloadscummvm-rg350-d66d7ff76bad94a61de85897187c6aff4837e39d.tar.gz
scummvm-rg350-d66d7ff76bad94a61de85897187c6aff4837e39d.tar.bz2
scummvm-rg350-d66d7ff76bad94a61de85897187c6aff4837e39d.zip
Changed type for samplesleft in order for MIN macro to work properly on all platforms
svn-id: r21264
-rw-r--r--engines/kyra/sound_adlib.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/sound_adlib.cpp b/engines/kyra/sound_adlib.cpp
index 4dc404f043..bdf6ec76e2 100644
--- a/engines/kyra/sound_adlib.cpp
+++ b/engines/kyra/sound_adlib.cpp
@@ -48,7 +48,7 @@ public:
// AudioStream API
int readBuffer(int16 *buffer, const int numSamples) {
- int samplesLeft = numSamples;
+ int32 samplesLeft = numSamples;
memset(buffer, 0, sizeof(int16) * numSamples);
while (samplesLeft) {
if (!_samplesTillCallback) {