aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorAntoine Poinsot <darosior@protonmail.com>2023-03-31 15:41:49 +0200
committerAntoine Poinsot <darosior@protonmail.com>2023-03-31 17:27:19 +0200
commit9a54d88c8cb0c5d529f388c2ce53008e1ff126dd (patch)
tree58e920d3addd607629ce522f38be271c490ce3b1 /src/script
parent5c2bb2b54cc7fceef4b9db631536ee6ed8129864 (diff)
miniscript: explicit cast instead of comparing integers of different signs
Diffstat (limited to 'src/script')
-rw-r--r--src/script/miniscript.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/miniscript.h b/src/script/miniscript.h
index bb42bf3c92..7c1a87a7dc 100644
--- a/src/script/miniscript.h
+++ b/src/script/miniscript.h
@@ -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];