fix minor signed/unsigned warning

This commit is contained in:
Charles Kerr 2010-12-16 16:43:15 +00:00
parent 1d9b9ce245
commit ffa977b25a
1 changed files with 1 additions and 1 deletions

View File

@ -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;