mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
Replace memcmp with std::equal in CScript::FindAndDelete
Function is stl; std::equal just makes more sense.
This commit is contained in:
parent
04a2937357
commit
ec9ad5f199
@ -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…
Reference in New Issue
Block a user