4 ms·
> I don't think that C actually forbids this code: *(int*)0x12345678 If not, give it time. It was only a few years ago when you were allowed to use a un
by xscott 3y ago
> I don't think that C actually forbids this code:
*(int*)0x12345678
If not, give it time. It was only a few years ago when you were allowed to use a union for that kind of thing. I really believe they'll eventually make everything except unsigned integers be UB.
"Oh, the code was never correct. You just got lucky before."