From 0b63ea1d8d0ddfbc2bbef629594eedecbc8b1273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Andersson?= Date: Wed, 14 Nov 2012 20:54:25 +0100 Subject: [PATCH] SCUMM: Hopefully fix warning Excplicitly cast to int to avoid a warning that I don't get, but which clone2727 does. At least, I hope it avoids the warning. --- engines/scumm/player_mac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/scumm/player_mac.cpp b/engines/scumm/player_mac.cpp index 565b13d74a4..6bc09d31073 100644 --- a/engines/scumm/player_mac.cpp +++ b/engines/scumm/player_mac.cpp @@ -245,7 +245,7 @@ int Player_Mac::readBuffer(int16 *data, const int numSamples) { // but I ran into overflow problems with the church // music. It's only once per note, so it should be ok. double mult = (double)(_channel[i]._instrument._rate) / (double)_sampleRate; - _channel[i]._pitchModifier = mult * _pitchTable[pitchIdx]; + _channel[i]._pitchModifier = (int)(mult * _pitchTable[pitchIdx]); _channel[i]._velocity = velocity; } else { _channel[i]._pitchModifier = 0;