use "1.0f" instead of "1f"

This commit is contained in:
Charles Kerr 2008-06-10 00:31:06 +00:00
parent eb72d44d94
commit 9f23502411
1 changed files with 2 additions and 2 deletions

View File

@ -314,9 +314,9 @@ tr_cpGetAmountDone( const tr_completion * cp, float * tab, int tabCount )
const tr_piece_index_t piece = i * interval; const tr_piece_index_t piece = i * interval;
if( tor == NULL ) if( tor == NULL )
tab[i] = 0f; tab[i] = 0.0f;
else if( isComplete || tr_cpPieceIsComplete( cp, piece ) ) else if( isComplete || tr_cpPieceIsComplete( cp, piece ) )
tab[i] = 1f; tab[i] = 1.0f;
else else
tab[i] = (float)cp->completeBlocks[piece] / tr_torPieceCountBlocks( tor, piece ); tab[i] = (float)cp->completeBlocks[piece] / tr_torPieceCountBlocks( tor, piece );
} }