diff --git a/src/script/script.h b/src/script/script.h index 62aaa1e19..7590e669d 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -590,7 +590,7 @@ public: opcodetype opcode; do { - while (end() - pc >= (long)b.size() && std::equal(b.begin(), b.end(), pc)) + while (static_cast(end() - pc) >= b.size() && std::equal(b.begin(), b.end(), pc)) { pc = erase(pc, pc + b.size()); ++nFound;