Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for Chris Jester-Youngâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #280640 |
The code snippet in the question violates the strict aliasing rule, and is undefined behaviour. :-( The safe C way to type-pun is to use a `union`. I'll post a suggested edit with this (feel free to reformat/edit to taste). (more) |
— | about 3 years ago |