use "1.0f" instead of "1f"
This commit is contained in:
parent
eb72d44d94
commit
9f23502411
|
@ -314,9 +314,9 @@ tr_cpGetAmountDone( const tr_completion * cp, float * tab, int tabCount )
|
|||
const tr_piece_index_t piece = i * interval;
|
||||
|
||||
if( tor == NULL )
|
||||
tab[i] = 0f;
|
||||
tab[i] = 0.0f;
|
||||
else if( isComplete || tr_cpPieceIsComplete( cp, piece ) )
|
||||
tab[i] = 1f;
|
||||
tab[i] = 1.0f;
|
||||
else
|
||||
tab[i] = (float)cp->completeBlocks[piece] / tr_torPieceCountBlocks( tor, piece );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue