aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-09-19 21:29:59 +0000
committerMax Horn2003-09-19 21:29:59 +0000
commita4675f34a7c056b2ca9a5f78d6bc7af26a5d947c (patch)
treea20d5e7d1be5e2effb1e1325f4d647e3f8eb0a22
parented605c38c535eecab9a0cd8c6d1ef336e7a632a2 (diff)
downloadscummvm-rg350-a4675f34a7c056b2ca9a5f78d6bc7af26a5d947c.tar.gz
scummvm-rg350-a4675f34a7c056b2ca9a5f78d6bc7af26a5d947c.tar.bz2
scummvm-rg350-a4675f34a7c056b2ca9a5f78d6bc7af26a5d947c.zip
work around silly bug in Microsoft Visual Studio .NET 2003. M$ does not stop at breaking HTML and Java, no, now they have to mutilate C/C++, too. MS-C instead of ANSI-C, anybody? *grmbl*
svn-id: r10319
-rw-r--r--sound/fmopl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/fmopl.cpp b/sound/fmopl.cpp
index 293b39a14b..69ccb7b055 100644
--- a/sound/fmopl.cpp
+++ b/sound/fmopl.cpp
@@ -612,7 +612,7 @@ static int OPLOpenTable(void) {
}
/* make total level table */
for (t = 0; t < EG_ENT - 1 ; t++){
- rate = ((1 << TL_BITS) - 1) / pow(10, EG_STEP * t / 20); /* dB -> voltage */
+ rate = ((1 << TL_BITS) - 1) / pow(10.0, EG_STEP * t / 20); /* dB -> voltage */
TL_TABLE[ t] = (int)rate;
TL_TABLE[TL_MAX + t] = -TL_TABLE[t];
}