2 ms·
There's a Torvalds rant about this specific UB and it's how they do it in the Linux kernel.
by qppo 6y ago
There's a Torvalds rant about this specific UB and it's how they do it in the Linux kernel.
- sharpneli 6y agoLinux is written in C. In C99 and later type punning trough unions is well defined operation. No issues there. It’s C++ that’s lacking this feature. Not C.