[Scummvm-cvs-logs] CVS: scummvm/sound fmopl.cpp,1.15,1.16

Max Horn fingolfin at users.sourceforge.net
Fri Sep 19 14:32:06 CEST 2003


Update of /cvsroot/scummvm/scummvm/sound
In directory sc8-pr-cvs1:/tmp/cvs-serv22506/sound

Modified Files:
	fmopl.cpp 
Log Message:
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*

Index: fmopl.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/fmopl.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- fmopl.cpp	10 Sep 2003 12:19:57 -0000	1.15
+++ fmopl.cpp	19 Sep 2003 21:29:59 -0000	1.16
@@ -612,7 +612,7 @@
 	}
 	/* 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];
 	}





More information about the Scummvm-git-logs mailing list