Browse Source

Replace memcmp with std::equal in CScript::FindAndDelete

Function is stl; std::equal just makes more sense.
0.13
Patrick Strateman 9 years ago
parent
commit
ec9ad5f199
  1. 2
      src/script/script.h

2
src/script/script.h

@ -574,7 +574,7 @@ public: @@ -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;

Loading…
Cancel
Save