aboutsummaryrefslogtreecommitdiff
path: root/src/script/script.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/script.h')
-rw-r--r--src/script/script.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/script.h b/src/script/script.h
index ef3af21d6a..0503b39a76 100644
--- a/src/script/script.h
+++ b/src/script/script.h
@@ -574,7 +574,7 @@ public:
opcodetype opcode;
do
{
- while (end() - pc >= (long)b.size() && std::equal(b.begin(), b.end(), pc))
+ while (static_cast<size_t>(end() - pc) >= b.size() && std::equal(b.begin(), b.end(), pc))
{
pc = erase(pc, pc + b.size());
++nFound;