Fix some compilation warnings
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1215
This commit is contained in:
parent
3a869f20de
commit
341cb199e6
2 changed files with 5 additions and 5 deletions
|
@ -1118,7 +1118,7 @@ static int init_tables(void)
|
|||
|
||||
for (x=0; x<TL_RES_LEN; x++)
|
||||
{
|
||||
m = (1<<16) / pow(2, (x+1) * (ENV_STEP/4.0) / 8.0);
|
||||
m = (1<<16) / pow(2.0, (x+1) * (ENV_STEP/4.0) / 8.0);
|
||||
m = floor(m);
|
||||
|
||||
/* we never reach (1<<16) here due to the (x+1) */
|
||||
|
@ -1158,9 +1158,9 @@ static int init_tables(void)
|
|||
/* we never reach zero here due to ((i*2)+1) */
|
||||
|
||||
if (m>0.0)
|
||||
o = 8*log(1.0/m)/log(2); /* convert to 'decibels' */
|
||||
o = 8*log(1.0/m)/log(2.0); /* convert to 'decibels' */
|
||||
else
|
||||
o = 8*log(-1.0/m)/log(2); /* convert to 'decibels' */
|
||||
o = 8*log(-1.0/m)/log(2.0); /* convert to 'decibels' */
|
||||
|
||||
o = o / (ENV_STEP/4);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue