mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Merge #18621: script: Disallow silent bool -> CScript conversion
88884ee8d8script: Disallow silent bool -> CScript conversion (MarcoFalke) Pull request description: Makes nonsensical stuff like `ScriptToAsmStr(false,false);` a compile failure ACKs for top commit: practicalswift: ACK88884ee8d8laanwj: ACK88884ee8d8promag: ACK88884ee8d8. instagibbs: utACK88884ee8d8jb55: ACK88884ee8d8ryanofsky: Code review ACK88884ee8d8Tree-SHA512: 419d79c03b44a979c061b0540662928251ad68d53e65996bf370bb55ed1526ac7a22710cb7536c9954db5fec07bc312884bf8828f97a4ba180a5b07969a17f54
This commit is contained in:
@@ -433,7 +433,7 @@ public:
|
||||
return ret;
|
||||
}
|
||||
|
||||
CScript(int64_t b) { operator<<(b); }
|
||||
explicit CScript(int64_t b) { operator<<(b); }
|
||||
|
||||
explicit CScript(opcodetype b) { operator<<(b); }
|
||||
explicit CScript(const CScriptNum& b) { operator<<(b); }
|
||||
|
||||
Reference in New Issue
Block a user