mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
miniscript: explicit cast instead of comparing integers of different signs
This commit is contained in:
parent
5c2bb2b54c
commit
9a54d88c8c
@ -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…
Reference in New Issue
Block a user