oh gods. left shifts of signed values are undefined behavior in C. (x * 2) is not equivalent to (x << 1) if x is negative. I'm not kidding
-
-
Replying to @FioraAeterna
@fioraaeterna Yeah, this caused a lot of problems in Rust, since it's UB in LLVM too :(1 reply 0 retweets 2 likes
Replying to @FioraAeterna
@fioraaeterna Oh wait, I was thinking of a different hazard with shl: shifting by more than the size of the type (which is also UB)
5:30 PM - 6 Jul 2015
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.