1
0
mirror of https://github.com/bitcoin/bips.git synced 2025-01-19 05:45:07 +01:00

Adds brackets

Co-authored-by: kallewoof <kalle.alm@gmail.com>
This commit is contained in:
Ethan Heilman 2023-12-12 08:59:03 -05:00 committed by GitHub
parent 0335c9d188
commit 3d31e5c894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,8 +50,9 @@ case OP_CAT:
}
valtype& vch1 = stacktop(-2);
valtype& vch2 = stacktop(-1);
if (vch1.size() + vch2.size() > MAX_SCRIPT_ELEMENT_SIZE)
if (vch1.size() + vch2.size() > MAX_SCRIPT_ELEMENT_SIZE) {
return set_error(serror, SCRIPT_ERR_INVALID_STACK_OPERATION);
}
vch1.insert(vch1.end(), vch2.begin(), vch2.end());
stack.pop_back();
}