Silence gcc warnings by making explicit the cast from 64 bits to 32 bits.

This commit is contained in:
Steve Checkoway
2008-11-24 07:53:47 +00:00
parent 0efbd42aa3
commit dacca25190
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -271,7 +271,7 @@ struct madlib_t
static float scale(mad_fixed_t sample)
{
return (double) sample / (1<<MAD_F_FRACBITS);
return float( double(sample) / (1<<MAD_F_FRACBITS) );
}
static int get_this_frame_byte( const madlib_t *mad )