From: <jpg...@us...> - 2007-10-03 17:42:46
|
Revision: 1171 http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1171&view=rev Author: jpgrayson Date: 2007-10-03 10:42:50 -0700 (Wed, 03 Oct 2007) Log Message: ----------- Backport fix from trunk to use floats instead of doubles. Modified Paths: -------------- branches/2.0/lib/audio_encode.c Modified: branches/2.0/lib/audio_encode.c =================================================================== --- branches/2.0/lib/audio_encode.c 2007-10-03 17:37:45 UTC (rev 1170) +++ branches/2.0/lib/audio_encode.c 2007-10-03 17:42:50 UTC (rev 1171) @@ -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. |