Skip to content

Commit 5150e28

Browse files
committed
Merge bitcoin/bitcoin#27382: miniscript: explicit cast instead of comparing integers of different signs
9a54d88 miniscript: explicit cast instead of comparing integers of different signs (Antoine Poinsot) Pull request description: Fixes #27381 ACKs for top commit: stickies-v: ACK 9a54d88 Tree-SHA512: beba35ecf3325b3b0e87f3288af4522de455c2983f7f6dd64a34a1636e351afcd1e00d249dfe2b3cde4f65254d62b610daaebfbda4e4af76f1fef4dd168c631d
2 parents a864998 + 9a54d88 commit 5150e28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/script/miniscript.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ struct Node {
11941194
case Fragment::OR_I:
11951195
return subs[0] || subs[1];
11961196
case Fragment::THRESH:
1197-
return std::count(subs.begin(), subs.end(), true) >= node.k;
1197+
return static_cast<uint32_t>(std::count(subs.begin(), subs.end(), true)) >= node.k;
11981198
default: // wrappers
11991199
assert(subs.size() == 1);
12001200
return subs[0];

0 commit comments

Comments
 (0)