On Debian 10.10 32-bit with GCC 8.3.0: ``` ... bench/peer_eviction.cpp: In function ‘void EvictionProtectionCommon(ankerl::nanobench::Bench&, int, std::function<void(NodeEvictionCandidate&)>)’: bench/peer_eviction.cpp:30:51: warning: narrowing conversion of ‘(((uint64_t)(& bench)->ankerl::nanobench::Bench::epochs()) * (& bench)->ankerl::nanobench::Bench::epochIterations())’ from ‘uint64_t’ {aka ‘long long unsigned int’} to ‘std::vector<std::vector<NodeEvictionCandidate> >::size_type’ {aka ‘unsigned int’} inside { } [-Wnarrowing] std::vector<Candidates> copies{bench.epochs() * bench.epochIterations(), candidates}; ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ ... ``` `bench/peer_eviction.cpp` was added recently in #22284.
Activity
hebasto commentedon Jul 15, 2021
cc @jonatack @vasild
jonatack commentedon Jul 15, 2021
Thanks! On it.
Merge bitcoin/bitcoin#22464: bench: fix 32-bit narrowing warning in b…
Merge bitcoin/bitcoin#22464: bench: fix 32-bit narrowing warning in b…
Merge bitcoin/bitcoin#22464: bench: fix 32-bit narrowing warning in b…
Merge bitcoin#22464: bench: fix 32-bit narrowing warning in bench/pee…