Skip to content

Commit 9a54d88

Browse files
committed
miniscript: explicit cast instead of comparing integers of different signs
1 parent 5c2bb2b commit 9a54d88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/script/miniscript.h

Lines changed: 1 addition & 1 deletion
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)