From d66d7ff76bad94a61de85897187c6aff4837e39d Mon Sep 17 00:00:00 2001 From: Lars Persson Date: Mon, 13 Mar 2006 21:38:20 +0000 Subject: Changed type for samplesleft in order for MIN macro to work properly on all platforms svn-id: r21264 --- engines/kyra/sound_adlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3