aboutsummaryrefslogtreecommitdiff
path: root/doc/build-netbsd.md
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-04-29 08:50:06 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-04-29 11:38:18 +0200
commitfa098713201a6999ec4c12d0a8bde0adcf47b095 (patch)
treee51748dbf633ef088405fea20c9100a8d67adc27 /doc/build-netbsd.md
parentfb66dbe786ff3028d8f2b0be503ddd3b36541798 (diff)
downloadbitcoin-fa098713201a6999ec4c12d0a8bde0adcf47b095.tar.xz
refactor: Avoid sign-compare compiler warning in util/asmap
This reverts commit eac6a3080d38cfd4eb7204ecd327df213958e51a ("refactor: Rework asmap Interpret to avoid ptrdiff_t"), because it is UB to form a past-the-end iterator, even if it is never dereferenced. Then fix the compiler warning in a different way: Instead of comparing an uint32_t against a signed ptrdiff_t, just promote both to a type that can represent both types. Even though in this case the ptrdiff_t should never hold a negative value, the overhead from promotion should be negligible.
Diffstat (limited to 'doc/build-netbsd.md')
0 files changed, 0 insertions, 0 deletions