From 242b7ef7087bdfa9aa2624a39fc316a619005ad0 Mon Sep 17 00:00:00 2001 From: Kari Salminen Date: Mon, 13 Jul 2009 17:09:40 +0000 Subject: Fix compilation under Windows (The fabs-calls were causing error C2668 about 'ambiguous call to overloaded function'). svn-id: r42440 --- engines/sword1/sound.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/sword1/sound.cpp b/engines/sword1/sound.cpp index 3e920c5018..b3fa1aa0fd 100644 --- a/engines/sword1/sound.cpp +++ b/engines/sword1/sound.cpp @@ -127,9 +127,9 @@ void Sound::checkSpeechFileEndianness() { size /= 2; int16 prev_be_value = (int16)SWAP_BYTES_16(*((uint16*)(data))); for (uint32 i = 1 ; i < size ; ++i) { - le_diff_sum += fabs(data[i] - data[i-1]); + le_diff_sum += fabs((double)(data[i] - data[i-1])); int16 be_value = (int16)SWAP_BYTES_16(*((uint16*)(data + i))); - be_diff_sum += fabs(be_value - prev_be_value); + be_diff_sum += fabs((double)(be_value - prev_be_value)); prev_be_value = be_value; } delete [] data; -- cgit v1.2.3