logoalt Hacker News

cowlevel • today at 4:21 PM • 0 replies • view on HN

> When casting from pointer to integer and back again, the resulting pointer must reference the same object as the original pointer, otherwise the behavior is undefined.

So I'm right. This is implementation-defined, and the way the implementation has defined it is to make it fully UB (except for round trips).