diff options
| author | Patrick Strateman <[email protected]> | 2016-04-19 13:13:46 -0700 |
|---|---|---|
| committer | Patrick Strateman <[email protected]> | 2016-04-19 13:22:20 -0700 |
| commit | c0f660c3a39e3b6d75d9a6bf8a9824c347c321b8 (patch) | |
| tree | ba36f8444fd699e4c4d0d62651c080c3a5b2de24 /src/script/script.h | |
| parent | Replace memcmp with std::equal in CScript::FindAndDelete (diff) | |
| download | discoin-c0f660c3a39e3b6d75d9a6bf8a9824c347c321b8.tar.xz discoin-c0f660c3a39e3b6d75d9a6bf8a9824c347c321b8.zip | |
Replace c-style cast with c++ style static_cast.
Diffstat (limited to 'src/script/script.h')
| -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 ef3af21d6..0503b39a7 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; |