case 0: continue;
case 2: torrent->peer_list->seed_count[i]--;
case 1: default:
- assert( torrent->peer_list->seed_count[i] > 0 );
+ assert( torrent->peer_list->seed_count[i] >= 0 );
assert( torrent->peer_list->seed_count[i] <= torrent->peer_list->peers[i].size );
return torrent;
}
if( !(OT_FLAG(peer_dest) & PEER_FLAG_SEEDING ) && (OT_FLAG(peer) & PEER_FLAG_SEEDING ) )
torrent->peer_list->seed_count[0]++;
- assert( torrent->peer_list->seed_count[0] > 0 );
+ assert( torrent->peer_list->seed_count[0] >= 0 );
assert( torrent->peer_list->seed_count[0] <= torrent->peer_list->peers[0].size );
}
case 0: continue;
case 2: torrent->peer_list->seed_count[i]--;
case 1: default:
- assert( torrent->peer_list->seed_count[i] > 0 );
+ assert( torrent->peer_list->seed_count[i] >= 0 );
assert( torrent->peer_list->seed_count[i] <= torrent->peer_list->peers[i].size );
return;
}