diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-12-01 10:00:04 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-12-01 10:22:14 +0100 |
| commit | 327291af02d05e09188713d882bf68ac708c1077 (patch) | |
| tree | fd6e45cfb3d11beb185c3d1da556a075c924b165 /src/script/script.cpp | |
| parent | Merge pull request #7096 (diff) | |
| parent | Prevector type (diff) | |
| download | discoin-327291af02d05e09188713d882bf68ac708c1077.tar.xz discoin-327291af02d05e09188713d882bf68ac708c1077.zip | |
Merge pull request #6914
114b581 Prevector type (Pieter Wuille)
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 263c89def..9c77ed9fc 100644 --- a/src/script/script.cpp +++ b/src/script/script.cpp @@ -205,9 +205,9 @@ bool CScript::IsPayToScriptHash() const { // Extra-fast test for pay-to-script-hash CScripts: return (this->size() == 23 && - this->at(0) == OP_HASH160 && - this->at(1) == 0x14 && - this->at(22) == OP_EQUAL); + (*this)[0] == OP_HASH160 && + (*this)[1] == 0x14 && + (*this)[22] == OP_EQUAL); } bool CScript::IsPushOnly(const_iterator pc) const |