Merge pull request #246 from svost/setofc4267
authorCryptoManiac <CryptoManiac@users.noreply.github.com>
Fri, 2 Oct 2015 14:18:25 +0000 (17:18 +0300)
committerCryptoManiac <CryptoManiac@users.noreply.github.com>
Fri, 2 Oct 2015 14:18:25 +0000 (17:18 +0300)
Fix warning: comparison between signed and unsigned integer expressions

src/addrman.cpp

index a7615ed..ba62a00 100644 (file)
@@ -498,7 +498,7 @@ void CAddrMan::GetAddr_(std::vector<CAddress> &vAddr)
         nNodes = ADDRMAN_GETADDR_MAX;
 
     // perform a random shuffle over the first nNodes elements of vRandom (selecting from all)
-    for (int n = 0; n<nNodes; n++)
+    for (unsigned int n = 0; n<nNodes; n++)
     {
         int nRndPos = GetRandInt(vRandom.size() - n) + n;
         SwapRandom(n, nRndPos);