Skip to content

Commit 903be99

Browse files
committed
Merge #18621: script: Disallow silent bool -> CScript conversion
88884ee script: Disallow silent bool -> CScript conversion (MarcoFalke) Pull request description: Makes nonsensical stuff like `ScriptToAsmStr(false,false);` a compile failure ACKs for top commit: practicalswift: ACK 88884ee laanwj: ACK 88884ee promag: ACK 88884ee. instagibbs: utACK 88884ee jb55: ACK 88884ee ryanofsky: Code review ACK 88884ee Tree-SHA512: 419d79c03b44a979c061b0540662928251ad68d53e65996bf370bb55ed1526ac7a22710cb7536c9954db5fec07bc312884bf8828f97a4ba180a5b07969a17f54
2 parents 4d793bc + 88884ee commit 903be99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/script/script.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ class CScript : public CScriptBase
433433
return ret;
434434
}
435435

436-
CScript(int64_t b) { operator<<(b); }
436+
explicit CScript(int64_t b) { operator<<(b); }
437437

438438
explicit CScript(opcodetype b) { operator<<(b); }
439439
explicit CScript(const CScriptNum& b) { operator<<(b); }

0 commit comments

Comments
 (0)