aboutsummaryrefslogtreecommitdiff
path: root/src/script/script.cpp
diff options
context:
space:
mode:
authorPavel Janík <Pavel@Janik.cz>2016-11-10 08:00:05 +0100
committerPavel Janík <Pavel@Janik.cz>2016-12-05 11:41:46 +0100
commit9de90bb749926a51aac15d5998bff3e12425675e (patch)
treec8f36dfda28f69e8f90ea8bffb668a927d031e8c /src/script/script.cpp
parent43e8150ef69093c906c4406ce58c1fd21fee898e (diff)
Do not shadow variables (gcc set)
Diffstat (limited to 'src/script/script.cpp')
-rw-r--r--src/script/script.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/script.cpp b/src/script/script.cpp
index ddf6775569..8ec0ba27d3 100644
--- a/src/script/script.cpp
+++ b/src/script/script.cpp
@@ -186,18 +186,18 @@ unsigned int CScript::GetSigOpCount(const CScript& scriptSig) const
// get the last item that the scriptSig
// pushes onto the stack:
const_iterator pc = scriptSig.begin();
- vector<unsigned char> data;
+ vector<unsigned char> vData;
while (pc < scriptSig.end())
{
opcodetype opcode;
- if (!scriptSig.GetOp(pc, opcode, data))
+ if (!scriptSig.GetOp(pc, opcode, vData))
return 0;
if (opcode > OP_16)
return 0;
}
/// ... and return its opcount:
- CScript subscript(data.begin(), data.end());
+ CScript subscript(vData.begin(), vData.end());
return subscript.GetSigOpCount(true);
}