From 3d31e5c8947bf5d2d8ba02dc22c5302085b9f91b Mon Sep 17 00:00:00 2001 From: Ethan Heilman Date: Tue, 12 Dec 2023 08:59:03 -0500 Subject: Adds brackets Co-authored-by: kallewoof --- bip-???-cat.mediawiki | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bip-???-cat.mediawiki b/bip-???-cat.mediawiki index 6833621..584f697 100644 --- a/bip-???-cat.mediawiki +++ b/bip-???-cat.mediawiki @@ -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(); } -- cgit v1.2.3