diff options
author | Pavel Janík <Pavel@Janik.cz> | 2016-11-10 08:00:05 +0100 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2016-12-05 11:41:46 +0100 |
commit | 9de90bb749926a51aac15d5998bff3e12425675e (patch) | |
tree | c8f36dfda28f69e8f90ea8bffb668a927d031e8c /src/script/script.cpp | |
parent | 43e8150ef69093c906c4406ce58c1fd21fee898e (diff) |
Do not shadow variables (gcc set)
Diffstat (limited to 'src/script/script.cpp')
-rw-r--r-- | src/script/script.cpp | 6 |
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); } |