2 ms·
Doesn't this run into the same issue described by the author? > Because unsigned char in C expressions gets type promoted to the signed type int. > So if we s
by matheusmoreira 6y ago
Doesn't this run into the same issue described by the author?
> Because unsigned char in C expressions gets type promoted to the signed type int.
> So if we say 0x80<<24 it overwrites the sign bit, which is an undefined behavior
Does the u8 type protect against this?