mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Fix typo in comment
This commit is contained in:
parent
aa7c92eaef
commit
1967112d98
1 changed files with 1 additions and 1 deletions
|
|
@ -842,7 +842,7 @@ bool EvalScript(std::vector<std::vector<unsigned char> >& stack, const CScript&
|
||||||
if (length > MAX_SCRIPT_ELEMENT_SIZE)
|
if (length > MAX_SCRIPT_ELEMENT_SIZE)
|
||||||
length = MAX_SCRIPT_ELEMENT_SIZE;
|
length = MAX_SCRIPT_ELEMENT_SIZE;
|
||||||
|
|
||||||
// start + length cannot overflow because of the restrictions immediately abo
|
// start + length cannot overflow because of the restrictions immediately above
|
||||||
if (start + length > vch1.size()) {
|
if (start + length > vch1.size()) {
|
||||||
length = CScriptNum(vch1.size()) - start;
|
length = CScriptNum(vch1.size()) - start;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue