Avoid implicit casts from bool to CScriptNum.
Rationale: Explicit is better than implicit.
Avoid implicit casts from bool to CScriptNum.
Rationale: Explicit is better than implicit.
There is no implicit cast here, instead it uses CScriptNum& operator=( const int64_t& rhs).
For that reason NACK as is.
@promag The conversion from bool is clearly implicit, isn't it?
@practicalswift right, sorry, late night I thought you meant implicit construction.
utACK 350f5b30533eebaf27d9a63c3d8d0bea3df3a291
Seems like a fine change, does what is described, don't really think it's good or bad.
I really don't like doing unnecessary changes in consensus code. The implicit case from bool to int64 is fully defined behavior.
IMO, this also, doesn't make the code easier to understand, just longer.
Sorry, going to close this. If there is overwhelming agreement to do this we should reopen, but otherwise, meh.
OK :-)