From: <jpg...@us...> - 2007-10-03 17:15:49
|
Revision: 1165 http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1165&view=rev Author: jpgrayson Date: 2007-10-03 10:15:52 -0700 (Wed, 03 Oct 2007) Log Message: ----------- Be explicit about float use. Modified Paths: -------------- trunk/lib/audio_encode.c Modified: trunk/lib/audio_encode.c =================================================================== --- trunk/lib/audio_encode.c 2007-10-02 19:37:29 UTC (rev 1164) +++ trunk/lib/audio_encode.c 2007-10-03 17:15:52 UTC (rev 1165) @@ -57,8 +57,8 @@ { /* avoid calling log10() on zero which yields inf or * negative numbers which yield nan */ - if ( vol <= 0.0 ) - return -99.9; + if ( vol <= 0.0f ) + return -99.9f; else return log10f(vol) * 20; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |