diff options
| author | Wladimir J. van der Laan <[email protected]> | 2018-01-29 14:26:20 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2018-01-29 14:26:26 +0100 |
| commit | c0ae864ef51dba02dfd3eef43d4de7e8216506b6 (patch) | |
| tree | 9da189205e5aedd1c9a21aa21e7d1b72711320ee /src/httpserver.cpp | |
| parent | Merge #12159: Use the character based overload for std::string::find. (diff) | |
| parent | Fix warnings when building with DEBUG_ADDRMAN (diff) | |
| download | discoin-c0ae864ef51dba02dfd3eef43d4de7e8216506b6.tar.xz discoin-c0ae864ef51dba02dfd3eef43d4de7e8216506b6.zip | |
Merge #11577: Fix warnings (-Wsign-compare) when building with DEBUG_ADDRMAN
6eddd43 Fix warnings when building with DEBUG_ADDRMAN (practicalswift)
Pull request description:
Fix warnings when building with `DEBUG_ADDRMAN`.
Warnings prior to this commit:
```
addrman.cpp:390:24: warning: comparison of integers of different signs: 'size_type' (aka 'unsigned long') and 'int' [-Wsign-compare]
if (vRandom.size() != nTried + nNew)
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
addrman.cpp:411:52: warning: comparison of integers of different signs: 'int' and 'size_type' (aka 'unsigned long') [-Wsign-compare]
if (info.nRandomPos < 0 || info.nRandomPos >= vRandom.size() || vRandom[info.nRandomPos] != n)
~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~
addrman.cpp:419:25: warning: comparison of integers of different signs: 'size_type' (aka 'unsigned long') and 'int' [-Wsign-compare]
if (setTried.size() != nTried)
~~~~~~~~~~~~~~~ ^ ~~~~~~
addrman.cpp:421:23: warning: comparison of integers of different signs: 'size_type' (aka 'unsigned long') and 'int' [-Wsign-compare]
if (mapNew.size() != nNew)
~~~~~~~~~~~~~ ^ ~~~~
4 warnings generated.
```
Tree-SHA512: 0316faecfe95066d2c9a0b6b3960086e43824f21a67086a895ea45fbce1327f8d6df5945fe923c2dbe4efce430bc1384d515d317c3930d97d24965e507cf734d
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions