diff options
author | Patrick Strateman <patrick.strateman@gmail.com> | 2016-04-19 13:13:46 -0700 |
---|---|---|
committer | Patrick Strateman <patrick.strateman@gmail.com> | 2016-04-19 13:22:20 -0700 |
commit | c0f660c3a39e3b6d75d9a6bf8a9824c347c321b8 (patch) | |
tree | ba36f8444fd699e4c4d0d62651c080c3a5b2de24 /src | |
parent | ec9ad5f199e4ec6eb05d8ea47016413413fe17e0 (diff) |
Replace c-style cast with c++ style static_cast.
Diffstat (limited to 'src')
-rw-r--r-- | src/script/script.h | 2 |
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; |