diff --git a/libtransmission/history.c b/libtransmission/history.c index 4278a1f36..b6d8a19e1 100644 --- a/libtransmission/history.c +++ b/libtransmission/history.c @@ -33,7 +33,7 @@ struct tr_recentHistory void tr_historyAdd( tr_recentHistory * h, time_t now, unsigned int n ) { - if( h->slices[h->newest].date + h->precision >= now ) + if( h->slices[h->newest].date + (time_t)h->precision >= now ) h->slices[h->newest].n += n; else { if( ++h->newest == h->sliceCount ) h->newest = 0;