summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan Heilman <ethan.r.heilman@gmail.com>2023-12-12 08:26:36 -0500
committerGitHub <noreply@github.com>2023-12-12 08:26:36 -0500
commit26e8e5f7fc1f51e6ba861de7a25524e1b561a08d (patch)
treef5659472be45c7f71a88641fb73c50d9aa09184a
parentf1169dd1fc067825c56016379a8b84c033b6eeb2 (diff)
downloadbips-26e8e5f7fc1f51e6ba861de7a25524e1b561a08d.tar.xz
Better fits bitcoin style guide
"If an if only has a single-statement then-clause, it can appear on the same line as the if, without braces. In every other case, braces are required, and the then and else clauses must appear correctly indented on a new line." Co-authored-by: kallewoof <kalle.alm@gmail.com>
-rw-r--r--bip-???-cat.mediawiki3
1 files changed, 2 insertions, 1 deletions
diff --git a/bip-???-cat.mediawiki b/bip-???-cat.mediawiki
index 281fa3c..05f16d6 100644
--- a/bip-???-cat.mediawiki
+++ b/bip-???-cat.mediawiki
@@ -45,8 +45,9 @@ Implementation
<pre>
case OP_CAT:
{
- if (stack.size() < 2)
+ if (stack.size() < 2) {
return set_error(serror, SCRIPT_ERR_INVALID_STACK_OPERATION);
+ }
valtype& vch1 = stacktop(-2);
valtype& vch2 = stacktop(-1);
if (vch1.size() + vch2.size() > MAX_SCRIPT_ELEMENT_SIZE)