char
one is deprecated according to https://github.com/bitcoin/bitcoin/blob/d22e7ee93313b13365bd14a5fffeb055cff4dcd2/src/serialize.h#L227 . Also, using uint8_t
directly avoids casts.
char
one is deprecated according to https://github.com/bitcoin/bitcoin/blob/d22e7ee93313b13365bd14a5fffeb055cff4dcd2/src/serialize.h#L227 . Also, using uint8_t
directly avoids casts.
Nice change.
Approach ACK fafb880e8854f9b7fb3934e02a0bd0409aec72c2
Concept ACK, char
is bad in C++ in general for both it’s undefined default signedness and a lot of people thinking it’s garanteed to be 8-bit, which is not true.
Haven’t yet looked though all of the code, but shouldn’t char
versions of Serialize()
/Unserialize()
in src/serialize.h
be removed too?
cr ACK fafb880e8854f9b7fb3934e02a0bd0409aec72c2: patch looks correct
uint8_t
and uniform initialisation {}
make things significantly easier to reason about. Thanks!