Hacker News new | past | comments | ask | show | jobs | submit login

By storing the struct in union with an integral type - or, if you need a value but not an address, casting to such a union. You might also think to just abuse pointer casting, but IIRC that breaks C strict aliasing assumptions and causes GCC's optimizations to do bad things to your program.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: