aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorKari Salminen2009-07-13 17:09:40 +0000
committerKari Salminen2009-07-13 17:09:40 +0000
commit242b7ef7087bdfa9aa2624a39fc316a619005ad0 (patch)
tree678fd1d38ab9ea7b062d163c8113d52f370a7294 /engines
parente5c2275e80fccf1481e1287cd773ad6887607e55 (diff)
downloadscummvm-rg350-242b7ef7087bdfa9aa2624a39fc316a619005ad0.tar.gz
scummvm-rg350-242b7ef7087bdfa9aa2624a39fc316a619005ad0.tar.bz2
scummvm-rg350-242b7ef7087bdfa9aa2624a39fc316a619005ad0.zip
Fix compilation under Windows (The fabs-calls were causing error C2668 about 'ambiguous call to overloaded function').
svn-id: r42440
Diffstat (limited to 'engines')
-rw-r--r--engines/sword1/sound.cpp4
1 files changed, 2 insertions, 2 deletions
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;