fixed a whole bunch of build warnings on gcc and msvc, along with some fixes discovered along the way
This commit is contained in:
@@ -61,7 +61,7 @@ struct peer_conn
|
||||
, outstanding_requests(0)
|
||||
{
|
||||
// build a list of all pieces and request them all!
|
||||
for (int i = 0; i < pieces.size(); ++i)
|
||||
for (int i = 0; i < int(pieces.size()); ++i)
|
||||
pieces[i] = i;
|
||||
std::random_shuffle(pieces.begin(), pieces.end());
|
||||
|
||||
|
Reference in New Issue
Block a user