From d261fb01fd2c6cb14805cdb2a6622d8e41c3ac46 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sun, 26 Apr 2009 20:13:22 +0000 Subject: [PATCH] Make visual C++ 2003 happy Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3365 --- src/hardware/dbopl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/dbopl.cpp b/src/hardware/dbopl.cpp index 3c6b32cb..d0786565 100644 --- a/src/hardware/dbopl.cpp +++ b/src/hardware/dbopl.cpp @@ -1293,7 +1293,7 @@ void InitTables( void ) { //Exponential volume table, same as the real adlib for ( int i = 0; i < 256; i++ ) { //Save them in reverse - ExpTable[i] = (int)( 0.5 + ( pow(2, ( 255 - i) * ( 1.0 /256 ) )-1) * 1024 ); + ExpTable[i] = (int)( 0.5 + ( pow(2.0, ( 255 - i) * ( 1.0 /256 ) )-1) * 1024 ); ExpTable[i] += 1024; //or remove the -1 oh well :) //Preshift to the left once so the final volume can shift to the right ExpTable[i] *= 2;