fixed a whole bunch of build warnings on gcc and msvc, along with some fixes discovered along the way

This commit is contained in:
Arvid Norberg
2011-02-21 05:24:41 +00:00
parent 9fe69e7596
commit 141ada013f
73 changed files with 353 additions and 248 deletions

View File

@@ -333,7 +333,7 @@ namespace libtorrent
b1 = a1.to_v6().to_bytes();
b2 = a2.to_v6().to_bytes();
m = mask.to_v6().to_bytes();
for (int i = 0; i < b1.size(); ++i)
for (int i = 0; i < int(b1.size()); ++i)
b1[i] &= m[i];
return memcmp(&b1[0], &b2[0], b1.size()) == 0;
}