File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -594,12 +594,12 @@ class CScript : public CScriptBase
594
594
if (b.empty ())
595
595
return nFound;
596
596
CScript result;
597
- iterator pc = begin (), pc2 = begin ();
597
+ const_iterator pc = begin (), pc2 = begin (), end = this -> end ();
598
598
opcodetype opcode;
599
599
do
600
600
{
601
601
result.insert (result.end (), pc2, pc);
602
- while (static_cast <size_t >(end () - pc) >= b.size () && std::equal (b.begin (), b.end (), pc))
602
+ while (static_cast <size_t >(end - pc) >= b.size () && std::equal (b.begin (), b.end (), pc))
603
603
{
604
604
pc = pc + b.size ();
605
605
++nFound;
@@ -609,7 +609,7 @@ class CScript : public CScriptBase
609
609
while (GetOp (pc, opcode));
610
610
611
611
if (nFound > 0 ) {
612
- result.insert (result.end (), pc2, end () );
612
+ result.insert (result.end (), pc2, end);
613
613
*this = result;
614
614
}
615
615
You can’t perform that action at this time.
0 commit comments