diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-04-29 08:50:06 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-04-29 11:38:18 +0200 |
commit | fa098713201a6999ec4c12d0a8bde0adcf47b095 (patch) | |
tree | e51748dbf633ef088405fea20c9100a8d67adc27 /src/util/string.cpp | |
parent | fb66dbe786ff3028d8f2b0be503ddd3b36541798 (diff) | |
download | bitcoin-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 'src/util/string.cpp')
0 files changed, 0 insertions, 0 deletions