Re:Comparative unsafety
by cryptonector on Friday April 09, 2021 @11:46PM
(#26758752)
Although `~0` assumes twos-complement signed numbers. Which, well, is probably a safe assumption, but still.
[ Parent
| on HN ]
All modern computers use twos-complement and modern languages like Rust require it. Not assuming twos-complement is a theoretical nitpick along the lines of not assuming a byte is 8 bits. Nobody does that.