aboutsummaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorPatrick Strateman <patrick.strateman@gmail.com>2016-04-19 13:07:16 -0700
committerPatrick Strateman <patrick.strateman@gmail.com>2016-04-19 13:22:03 -0700
commitec9ad5f199e4ec6eb05d8ea47016413413fe17e0 (patch)
treeb28837b7dec046b82f83cc8da59d5904b770fd06 /src/script
parent04a29373571d44be36bd099c3b3ec3cda89e99d1 (diff)
downloadbitcoin-ec9ad5f199e4ec6eb05d8ea47016413413fe17e0.tar.xz
Replace memcmp with std::equal in CScript::FindAndDelete
Function is stl; std::equal just makes more sense.
Diffstat (limited to 'src/script')
-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 d2a68a07ba..ef3af21d6a 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() && memcmp(&pc[0], &b[0], b.size()) == 0)
+ while (end() - pc >= (long)b.size() && std::equal(b.begin(), b.end(), pc))
{
pc = erase(pc, pc + b.size());
++nFound;