diff --git a/libtransmission/completion.c b/libtransmission/completion.c index c0436ae26..c3ae468bd 100644 --- a/libtransmission/completion.c +++ b/libtransmission/completion.c @@ -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 ); }