mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
Merge bitcoin/bitcoin#27382: miniscript: explicit cast instead of comparing integers of different signs
9a54d88c8c
miniscript: explicit cast instead of comparing integers of different signs (Antoine Poinsot) Pull request description: Fixes #27381 ACKs for top commit: stickies-v: ACK9a54d88c8c
Tree-SHA512: beba35ecf3325b3b0e87f3288af4522de455c2983f7f6dd64a34a1636e351afcd1e00d249dfe2b3cde4f65254d62b610daaebfbda4e4af76f1fef4dd168c631d
This commit is contained in:
commit
5150e28010
1 changed files with 1 additions and 1 deletions
|
@ -1194,7 +1194,7 @@ public:
|
|||
case Fragment::OR_I:
|
||||
return subs[0] || subs[1];
|
||||
case Fragment::THRESH:
|
||||
return std::count(subs.begin(), subs.end(), true) >= node.k;
|
||||
return static_cast<uint32_t>(std::count(subs.begin(), subs.end(), true)) >= node.k;
|
||||
default: // wrappers
|
||||
assert(subs.size() == 1);
|
||||
return subs[0];
|
||||
|
|
Loading…
Add table
Reference in a new issue