diff options
| author | MeshCollider <[email protected]> | 2017-07-11 21:37:53 +1200 |
|---|---|---|
| committer | MeshCollider <[email protected]> | 2017-09-08 10:36:26 +1200 |
| commit | 592404f03f2b734351d734f0c9ca1fdce997321b (patch) | |
| tree | 463d2c31825679c76f11445366b6736702b2824c /src/script/interpreter.cpp | |
| parent | Merge #10777: [tests] Avoid redundant assignments. Remove unused variables (diff) | |
| download | discoin-592404f03f2b734351d734f0c9ca1fdce997321b.tar.xz discoin-592404f03f2b734351d734f0c9ca1fdce997321b.zip | |
Changing &vec[0] to vec.data(), what 9804 missed
Diffstat (limited to 'src/script/interpreter.cpp')
| -rw-r--r-- | src/script/interpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index f9716dfc6..7315500e3 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -1366,7 +1366,7 @@ static bool VerifyWitnessProgram(const CScriptWitness& witness, int witversion, stack = std::vector<std::vector<unsigned char> >(witness.stack.begin(), witness.stack.end() - 1); uint256 hashScriptPubKey; CSHA256().Write(&scriptPubKey[0], scriptPubKey.size()).Finalize(hashScriptPubKey.begin()); - if (memcmp(hashScriptPubKey.begin(), &program[0], 32)) { + if (memcmp(hashScriptPubKey.begin(), program.data(), 32)) { return set_error(serror, SCRIPT_ERR_WITNESS_PROGRAM_MISMATCH); } } else if (program.size() == 20) { |